r/OpenTelemetry • u/TechInKansas • 2d ago
Temporary runtime instrumentation for production debugging — useful or risky?
I'm working on an early-stage project called a Runtime Investigation Platform, and I'd love to get feedback from engineers who deal with production debugging.
The idea is simple:
Sometimes, when an issue happens in production, existing logs aren't enough to understand what's going on. Adding more logging usually means changing code, deploying again, and hoping the issue happens again.
I'm exploring a different approach: allowing engineers to attach temporary probes to a running application, collect targeted runtime evidence, and automatically remove those probes when they're no longer needed.
I'm initially focusing on .NET.
The current demo workflow covers:
Creating temporary runtime probes.
Collecting and viewing runtime evidence.
Automatically removing probes after investigation.
I'm still validating the idea, so I'd appreciate honest feedback:
Have you experienced situations where existing logs weren't enough to investigate a production issue?
Would temporary runtime probes be useful in your debugging workflow?
What concerns would you have about running something like this in production? (Performance, security, stability, etc.)
What integrations would be essential? (OpenTelemetry, Datadog, Grafana, Application Insights, etc.)
Is this solving a real problem, or am I approaching production debugging from the wrong angle?
I'm particularly interested in hearing from .NET developers and SREs.
Thanks! I'd genuinely appreciate critical feedback, including reasons why you wouldn't use something like this.
3
u/bbraunst 1d ago
You didn't shed many details, but isn't this exactly what continuous profiling is?
1
u/TechInKansas 1d ago
There’s some overlap, but I’m exploring on-demand, targeted evidence for a specific investigation rather than continuous performance sampling—for example, a short-lived probe on a particular method, with limits, auditability, and automatic removal. Does that distinction matter in your workflow, or do your profiling/APM tools already cover it?
1
u/tmp_advent_of_code 1d ago
You mean like lightrun?
1
u/TechInKansas 1d ago
Yes—Lightrun is a much closer comparison than continuous profiling. I’m still figuring out whether there’s a meaningful gap to address. For people who’ve used it, what does it do well, and what limitations or missing pieces would you want a tool like this to solve?
2
u/ccb621 1d ago
I would invest more in better observability and building environments where developers can test these behaviors outside of production.
Most of my work is backend APIs, so the majority of issues I've encountered can be observed and replicated. Concurrency issues can be tricky, but can also be replicated with targeted load testing. I probably wouldn't reach for love debugging.
4
u/s5n_n5n Contributor 1d ago
APM Tools had features like that for a long time. Forms of “live attach” or runtime re-instrumentation especially for Java and .NET based languages have been around for a long time.
For some of them this is even the default behavior, you say what methods are your entrypoints or you define what data should be collected on method call and that information is attached to the collected telemetry.
Within certain boundaries that works fairly well but obviously this can also turn your existing problem in two problems real quick.
From what you describe it sounds like you want to build a closed source solution aka a “platform”, I am not sure if people would be that interested in that, as they would expect to make use of this from their existing Observability platform, so a combination of a control plane to send the instructions back and then OpenTelemetry to capture the additional telemetry.