mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Add SpanBarSettings * Add SpanBarSettings to Jaeger * Add SpanBarSettings to Zipkin * Updated title * Add dropdown to select identifer and make duration a default option * Show duration by default * Add option to hide * Move identifers into constants * Add process * Update text * Update placeholders * Text/meta data updates * Added tests * Added docs * Update find * Merge tag and prcoess options * Update docs * Updated tests * Update betterer results and trace view to match * Updated docs
43 lines
1.5 KiB
TypeScript
43 lines
1.5 KiB
TypeScript
import React from 'react';
|
|
|
|
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
|
import { config } from '@grafana/runtime';
|
|
import { DataSourceHttpSettings } from '@grafana/ui';
|
|
import { SpanBarSettings } from '@jaegertracing/jaeger-ui-components';
|
|
import { NodeGraphSettings } from 'app/core/components/NodeGraphSettings';
|
|
import { TraceToLogsSettings } from 'app/core/components/TraceToLogs/TraceToLogsSettings';
|
|
import { TraceToMetricsSettings } from 'app/core/components/TraceToMetrics/TraceToMetricsSettings';
|
|
|
|
export type Props = DataSourcePluginOptionsEditorProps;
|
|
|
|
export const ConfigEditor: React.FC<Props> = ({ options, onOptionsChange }) => {
|
|
return (
|
|
<>
|
|
<DataSourceHttpSettings
|
|
defaultUrl="http://localhost:16686"
|
|
dataSourceConfig={options}
|
|
showAccessOptions={false}
|
|
onChange={onOptionsChange}
|
|
/>
|
|
|
|
<div className="gf-form-group">
|
|
<TraceToLogsSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
|
|
{config.featureToggles.traceToMetrics ? (
|
|
<div className="gf-form-group">
|
|
<TraceToMetricsSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
) : null}
|
|
|
|
<div className="gf-form-group">
|
|
<NodeGraphSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
|
|
<div className="gf-form-group">
|
|
<SpanBarSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
</>
|
|
);
|
|
};
|