Make trace ID a clickable link in trace detail view#16345
Conversation
Show shortened trace ID as a dashboard hyperlink in the trace detail header instead of the full trace ID as plain text. Hoists the link computation so it is shared between the empty-trace and normal paths.
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16345Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16345" |
There was a problem hiding this comment.
Pull request overview
Updates the aspire traces --trace-id detail output to render the trace ID as a terminal hyperlink to the Dashboard trace detail page, using a shortened (7-char) ID for display.
Changes:
- Compute a shortened trace ID and format it via
TelemetryCommandHelpers.FormatTraceLink(...). - Use the formatted trace link in both the “no spans found” and normal trace detail header paths.
- Remove the previous header behavior that displayed the full trace ID as plain bold text.
|
🎬 CLI E2E Test Recordings — 72 recordings uploaded (commit View recordings
📹 Recordings uploaded automatically from CI run #24695616306 |
|
No documentation PR is required for this change. Reason: This is a minor CLI display enhancement — the trace ID in
|
Description
Make the trace ID in the
aspire traces --trace-iddetail view a clickable hyperlink to the dashboard trace detail page. Previously the full trace ID was shown as plain bold text; now a shortened ID (7 chars) is displayed as a terminal hyperlink.Changes:
OtlpHelpers.ToShortenedId+FormatTraceLinkfor the trace header in both the empty-trace and normal paths.shortTraceId/traceLinkabove the empty-check so the computation is shared.Checklist