Repository navigation
Conversation
A transaction made a `sentry` feed card the web UI 1.39 can't show and was stored a second time as a trace; buggregator/server keeps it out of the feed too. Envelope `transaction` items, `/store` transactions and span-only envelopes now go to the telemetry store alone, while an error sent with its transaction still makes the error event. The console prints one trace line for a transaction or v2 spans, and `get_event` points a transaction item of an error envelope at `get_trace`. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
… web UI refactor(tracing): drop the span store of the MCP tools, keep the buffer of the console `list_traces` and `get_trace` read the telemetry store the Sentry pages show, so they cover Sentry transactions and OTLP spans alike, with `services`, `sources` and `projects` in the list and new `project` and `source` filters as the UI API has. The store fills whenever the UI or the MCP server runs and is bound by `TRAP_TELEMETRY_MAX_SPANS`; a trace no longer expires 600 seconds after its last span. The console keeps its own span buffer, still limited by `TRAP_TRACES_*`: it renders frames in batches after they are stored and needs the OTLP spans with their kinds, events and links. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #378 +/- ##
==========================================
+ Coverage 80.26% 80.48% +0.22%
==========================================
Files 424 426 +2
Lines 16858 17056 +198
==========================================
+ Hits 13531 13728 +197
- Misses 3327 3328 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
`log(0)` is `-INF`, and casting it to int warned "float -INF is not representable as an int" whenever a profile reported zero memory, as `trap test` does. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
…or of any type in the feed A transaction without a trace ID fits no trace, so it stays a `sentry` event instead of being lost; a `/store` payload with an exception is an error even when typed `transaction`, as in buggregator/server. The console trace line counts the transaction among the spans, as `list_traces` does, and names spans sent without a transaction after their root span. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
…event tools to `list_traces` docs(skill): name Sentry traces and their shared limit in the MCP and server references An empty root service falls back to another part's service, and `list_events` and `wait_for_events` tell agents that Sentry transactions are traces. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
…read transaction spans as the store does docs: state that `service: "*"` takes a trace without services and that the trace limit counts transactions The console showed such a transaction, now a feed event, as an item it could not render. `get_event` read the spans of a transaction on its own and could name a trace ID or a span count the telemetry store did not keep; it now reads them with the store's reader. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed
transactionitems,/storetransactions, span-only v2 envelopes) no longer makesentryfeed events: they go only to the telemetry store, as in buggregator/server. The feed holds the errors; an envelope with an error and its transaction still yields the error event. A transaction without a trace ID fits no trace and stays a feed event; a/storepayload with an exception is an error whatever its type. The console prints one line per trace instead of "There is no renderer", e.g.Trace 541c…: POST /checkout (http.server), 640 ms, 5 spans, 2 failed(the transaction counts as a span, as inlist_traces); spans sent without a transaction are named after their root span.list_tracesandget_traceread the telemetry store of the web UI, so they cover Sentry and OpenTelemetry traces alike.list_tracesgainsprojectandsourcefilters andservices,sources,projectsin each row;servicenow matches any service of the trace (*also a trace without services), andspanscounts spans and transactions.get_traceshows a Sentry span asop: descriptionwith a kind read from its op, and its header names services, sources and projects.list_eventsandwait_for_eventstell agents that transactions are traces.SpanStoreis gone. The console keeps only its ownSpanBuffer(still bound byTRAP_TRACES_*): it renders frames in batches after they are stored, and it needs the OTLP spans with their kinds, events and links. The MCP tools followTRAP_TELEMETRY_MAX_SPANS; a trace no longer expires 600 s after its last span, and clearing the Sentry pages drops it for the tools too.get_eventno longer lists the spans of a transaction; a transaction item of an error envelope points atget_trace.Measure::memory(0)no longer warns "float -INF is not representable as an int" (seen duringtrap test).Why?
A transaction was stored twice and showed in the UI 1.39 feed as an "Unknown / Something went wrong" card, and OTLP traces were stored twice as well (span store for MCP, telemetry store for the UI).
Checklist
trap --ui --mcpwithtrap test— no transaction cards in the feed, Traces list, trace page and sequence answer, the console prints the OTLP trees and the Sentry trace lines, MCPlist_traces/get_traceover HTTP JSON-RPC return both the Sentry checkout trace and the OTel gateway→orders traceRun::getSubscribedSignalsfindings of Windows), markdownlint as CI runs itDocumentation
docs/mcp.md,docs/sentry.md,docs/opentelemetry.md,docs/web-ui.md,docs/configuration.mdand thetrapskill (SKILL.md,references/mcp.md,integrations.md,server.md).