diff --git a/public/app/features/explore/TraceView/components/TracePageHeader/Actions/TracePageActions.tsx b/public/app/features/explore/TraceView/components/TracePageHeader/Actions/TracePageActions.tsx index 7475fec0f99..4a967e1ff83 100644 --- a/public/app/features/explore/TraceView/components/TracePageHeader/Actions/TracePageActions.tsx +++ b/public/app/features/explore/TraceView/components/TracePageHeader/Actions/TracePageActions.tsx @@ -40,12 +40,12 @@ export default function TracePageActions(props: TracePageActionsProps) { label={copyTraceIdClicked ? 'Copied!' : 'Trace ID'} icon={'copy'} /> - alert('not implemented')} ariaLabel={'Export Trace'} label={'Export'} icon={'save'} - /> + /> */} ); } diff --git a/public/app/features/explore/TraceView/components/TracePageHeader/NewTracePageHeader.tsx b/public/app/features/explore/TraceView/components/TracePageHeader/NewTracePageHeader.tsx index 12d704e105a..835ff170d6b 100644 --- a/public/app/features/explore/TraceView/components/TracePageHeader/NewTracePageHeader.tsx +++ b/public/app/features/explore/TraceView/components/TracePageHeader/NewTracePageHeader.tsx @@ -77,18 +77,14 @@ export const NewTracePageHeader = memo((props: TracePageHeaderProps) => { return null; } - const { method, status, url } = getHeaderTags(trace.spans); - const title = (

- - | - {formatDuration(trace.duration)} - + {formatDuration(trace.duration)}

); + const { method, status, url } = getHeaderTags(trace.spans); let statusColor: BadgeColor = 'green'; if (status && status.length > 0) { if (status[0].value.toString().charAt(0) === '4') { @@ -107,27 +103,28 @@ export const NewTracePageHeader = memo((props: TracePageHeaderProps) => {
- {timestamp(trace, timeZone, styles)} - {method || status || url ? | : undefined} - {method && method.length > 0 && ( - - - - - - )} - {status && status.length > 0 && ( - - - - - - )} - {url && url.length > 0 && ( - - {url[0].value} - - )} + {timestamp(trace, timeZone, styles)} + + {method && method.length > 0 && ( + + + + + + )} + {status && status.length > 0 && ( + + + + + + )} + {url && url.length > 0 && ( + + {url[0].value} + + )} +
{ subtitle: css` flex: 1; line-height: 1em; - margin: -0.5em 8px 0.75em 8px; + margin: -0.5em 0.5em 0.75em 0.5em; `, tag: css` margin: 0 0.5em 0 0; `, + duration: css` + color: #aaa; + margin: 0 0.75em; + `, + timestamp: css` + vertical-align: middle; + `, + tagMeta: css` + margin: 0 0.75em; + vertical-align: text-top; + `, url: css` margin: -2.5px 0.3em; overflow: hidden; @@ -184,8 +192,5 @@ const getNewStyles = (theme: GrafanaTheme2) => { max-width: 30%; display: inline-block; `, - divider: css` - margin: 0 0.75em; - `, }; };