Repository navigation
fix(local): Title and count span batches in event list like the tail - #2485
Conversation
`sentry local event list` named a span batch after its segment's raw span name and counted every span in it, while the tail labels the segment from its attributes and counts only the spans besides it. A request that wrangler, Bun, or Deno names just `GET` showed as `GET` in the list, and an Express request with one handler span showed `span (2)` next to the tail's `[1 span]`. The list now takes its title and count from the tail's own helpers. Server spans with a URL and no route now show the path, as the viewer does, so a request to `/?q=1` reads `GET /` instead of the host. Co-Authored-By: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ce op A span batch whose span name is not a string made `event list` and `event view` throw for the whole session. Use the unnamed label instead. A transaction with `contexts.trace.op` of `http.server` and no `sentry.op` in its data now shows only its URL path, like a server span. Co-Authored-By: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 40103c7. Configure here.
…ntext Copying any trace-context op into the label attributes made a custom transaction name, such as a `ui.action` one, lose to its URL path. Co-Authored-By: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com>
…abels # Conflicts: # docs/cli/local-control-plane.md
MathurAditya724
left a comment
There was a problem hiding this comment.
Reviewed current head ec47508 with all earlier approved PR changes included. No actionable findings. The complete combined tree passed typecheck, lint and the full workspace test suite. Independent offline CLI wire QA covered a segment root plus child, a late two-span group without its root, an http.server transaction whose op lives only in contexts.trace, and an outgoing http.client span. Span event-list titles/counts agreed with the human tail (1 child, 2 late spans, 0 children for the outgoing root); server labels kept only /ok, outgoing labels retained api.example.invalid/api, and credentials/query/fragment text was absent from human/JSON observations. The actual main integration was verified to equal that tested combined tree before merge.

sentry local event listand the tail disagreed about streamed spans.GET, so the list showedGETwhile the tail showed the URL. The list now uses the tail's own label for the batch.[N spans]leaves out the segment span itself. The list now counts the same spans, and hides a count of 0 like the tail does.GET localhost:8787, with/dropped). It now shows the path, the way the viewer already does and the docs describe. This also applies to a transaction that only sets its op in the trace context.Before:
After:
Outgoing calls keep their host, such as
GET localhost:3105/feedback. In--json, a span batch'scountnow means the spans the tail counts.via @MathurAditya724.
--
View Session [Sentry]