dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.91k stars 475 forks source link

Link to span from structured logs #6688

Open JamesNK opened 1 week ago

JamesNK commented 1 week ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

Structured logs includes a link to the trace if available. However, a trace can be big and you still may not know from exactly which point the log message was created.

The structured log knows its trace and span. We should craft the link so it opens the detail trace with the span details open.

Describe the solution you'd like

Improve the link to include the span in the URL so that span details for a log message open.

Additional context

No response