import {useTheme} from '@emotion/react'; import {Button} from 'sentry/components/button'; import {IconSpan} from 'sentry/icons'; import {t} from 'sentry/locale'; import {getDuration} from 'sentry/utils/formatters'; import type {TraceTreeNodeDetailsProps} from 'sentry/views/performance/newTraceDetails/traceDrawer/tabs/traceTreeNodeDetails'; import {getTraceTabTitle} from 'sentry/views/performance/newTraceDetails/traceTabs'; import {Row} from 'sentry/views/performance/traceDetails/styles'; import {makeTraceNodeBarColor, type MissingInstrumentationNode} from '../../traceTree'; import {TraceDrawerComponents} from './styles'; export function MissingInstrumentationNodeDetails({ node, onParentClick, scrollToNode, }: TraceTreeNodeDetailsProps) { const theme = useTheme(); const parentTransaction = node.parent_transaction; return (
{t('Missing Instrumentation')}
{parentTransaction ? ( onParentClick(parentTransaction)}> {getTraceTabTitle(parentTransaction)} ) : null} {getDuration(node.value.timestamp - node.value.start_timestamp, 2, true)} {node.previous.value.op} - {node.previous.value.description} {node.next.value.op} - {node.next.value.description}
); }