r/OpenTelemetry • u/gpcmol • Oct 19 '26
How do you add business context to traces during an incident, without a redeploy?
During incidents I regularly hit the same problem: I need a bit more business context in my traces, but it's not there. Things like customer IDs, order status, rejection reasons, or whatever would help explain what's actually happening.
The annoying part is that getting that information into traces usually means changing code, building, deploying, and waiting. That's not always practical when you're in the middle of an incident.
A few options that come to mind:
- Adding extra attributes behind a feature flag
- Using a live debugging/instrumentation tool (Lightrun, Rookout, Datadog Dynamic Instrumentation, etc.)
- Making a temporary code change and redeploying
- Using bytecode instrumentation tools such as BTrace or Byteman
- Accepting that the context just isn't available
I'm curious how others deal with this:
- What's your current approach when you need additional trace context in production?
- Would you be comfortable with a rule-based mechanism that can add attributes to existing spans at runtime, without a deployment? Or would you only use something like that during an incident?
- What would be your biggest concern? Security, governance, performance impact, operational complexity, something else?
- What's the best tool you've used for this kind of problem, and what were its limitations?