Skip to content

Commit

Permalink
styles(explore): Render shorted span id (#80499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylphrex authored Nov 12, 2024
1 parent e6afdb4 commit c8fafc5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions static/app/utils/discover/fieldRenderers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ type SpecialFields = {
release: SpecialField;
replayId: SpecialField;
'span.status_code': SpecialField;
span_id: SpecialField;
team_key_transaction: SpecialField;
'timestamp.to_day': SpecialField;
'timestamp.to_hour': SpecialField;
Expand Down Expand Up @@ -468,6 +469,17 @@ const SPECIAL_FIELDS: SpecialFields = {
return <Container>{getShortEventId(id)}</Container>;
},
},
span_id: {
sortField: 'span_id',
renderFunc: data => {
const spanId: string | unknown = data?.span_id;
if (typeof spanId !== 'string') {
return null;
}

return <Container>{getShortEventId(spanId)}</Container>;
},
},
trace: {
sortField: 'trace',
renderFunc: data => {
Expand Down

0 comments on commit c8fafc5

Please sign in to comment.