import React from 'react'; import { DataSourcePluginOptionsEditorProps } from '@grafana/data'; import { config } from '@grafana/runtime'; import { DataSourceHttpSettings } from '@grafana/ui'; import { NodeGraphSettings } from 'app/core/components/NodeGraphSettings'; import { TraceToLogsSettings } from 'app/core/components/TraceToLogs/TraceToLogsSettings'; import { TraceToMetricsSettings } from 'app/core/components/TraceToMetrics/TraceToMetricsSettings'; import { LokiSearchSettings } from './LokiSearchSettings'; import { SearchSettings } from './SearchSettings'; import { ServiceGraphSettings } from './ServiceGraphSettings'; export type Props = DataSourcePluginOptionsEditorProps; export const ConfigEditor: React.FC = ({ options, onOptionsChange }) => { return ( <>
{config.featureToggles.traceToMetrics ? (
) : null}
{config.featureToggles.tempoSearch && (
)}
); };