Tracing: Add links to documentation in config pages (#66442)

Add links to documentation in config pages and clean up styles
This commit is contained in:
Joey
2023-04-13 14:56:35 +01:00
committed by GitHub
parent 4796a63554
commit 22fde6a3f2
10 changed files with 101 additions and 70 deletions

View File

@@ -9,6 +9,7 @@ import {
updateDatasourcePluginJsonDataOption,
} from '@grafana/data';
import { InlineField, InlineFieldRow, Input, Select, useStyles2 } from '@grafana/ui';
import { DocsLinkButton } from 'app/core/components/DocsLinkButton';
export interface SpanBarOptions {
type?: string;
@@ -34,7 +35,8 @@ export default function SpanBarSettings({ options, onOptionsChange }: Props) {
<h3 className="page-heading">Span bar</h3>
<div className={styles.infoText}>
Add additional info next to the service and operation on a span bar row in the trace view.
Add additional info next to the service and operation on a span bar row in the trace view
<DocsLinkButton hrefSuffix={`${options.type}/#span-bar`} />
</div>
<InlineFieldRow className={styles.row}>
@@ -88,7 +90,6 @@ const getStyles = (theme: GrafanaTheme2) => ({
padding-bottom: ${theme.spacing(2)};
color: ${theme.colors.text.secondary};
`,
row: css`
label: row;
align-items: baseline;