Trace to logs: Only show loki and splunk datasources in settings (#48723)

This commit is contained in:
Connor Lindsey
2022-05-05 06:28:28 -06:00
committed by GitHub
parent b35ca8c08d
commit 08bee1e682
@@ -47,7 +47,10 @@ export function TraceToLogsSettings({ options, onOptionsChange }: Props) {
<InlineField tooltip="The data source the trace is going to navigate to" label="Data source" labelWidth={26}>
<DataSourcePicker
inputId="trace-to-logs-data-source-picker"
logs
filter={(ds) => {
// Trace to logs only supports loki and splunk at the moment
return ds.type === 'loki' || ds.type === 'grafana-splunk-datasource';
}}
current={options.jsonData.tracesToLogs?.datasourceUid}
noDefault={true}
width={40}