I use Sentry tracing to investigate problems in production, including a major traffic spike on our MCP service. These notes capture what I found useful in tracing, how I investigated the spike, and my guidance for handling unusually large traces.
I described Sentry’s Cross-Event Querying in Trace Explorer beta as “A tiny but oh so large 🚢”.
The announcement described a way to refine span searches according to how spans relate to other events in a distributed trace.
I said it had taken us a while to get there: “its taken us a while”.
I described tracing as “amazing when you need to work through a problem.”
I said it was “lightning fast now to pivot into this more.”
I could quickly pivot from many requests to the cf-connecting-ip header, then inspect a single host's transaction and user agents; the cf-connecting-ip header was part of that investigation.
I wondered “What's this?” and said “Cursor 🤔”; I did not establish whether Cursor caused the traffic influx.
I reported that traffic “spiked from ~25 rps yesterday to ~2k sustained.”
I credited Cloudflare, saying “It absorbed it completely.”
We did not notice the spike until I was “randomly looking at charts.”
After seeing the spike, I said “now to go rate limit IPs.”
I said a spec would likely indicate that “you're doing something wrong” with a 20 GB trace.
If a trace has a large quantity of nodes, I recommend breaking it up: “if its large quantity of nodes you should break up the trace”.
For excessive payload size, Sentry’s approach is to use other metadata storage for things that are excessive (e.g. we have attachments).
I was curious whether “a 20gb trace would even break our system 🤔”; I did not report a test or outcome.
Related: mcp debugging improvements, agent tracing standards and instrumentation, telemetry data scale and sharing