import styled from '@emotion/styled'; import {FormattedCode} from 'sentry/views/starfish/components/formattedCode'; import type {IndexedSpan} from 'sentry/views/starfish/queries/types'; import {highlightSql} from 'sentry/views/starfish/utils/highlightSql'; export function SpanDescription({span}: {span: IndexedSpan}) { if (span.op.startsWith('db')) { return ; } return
{span.description}
; } function DatabaseSpanDescription({span}: {span: IndexedSpan}) { return ( {highlightSql(span.description || '', { action: span.action || '', domain: span.domain || '', })} ); } const CodeWrapper = styled('div')` font-size: ${p => p.theme.fontSizeMedium}; `;