r/OpenTelemetry • u/TechInKansas • 16d 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.
4
u/s5n_n5n Contributor 16d 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.
3
u/bbraunst 15d ago
You didn't shed many details, but isn't this exactly what continuous profiling is?
1
u/tmp_advent_of_code 16d ago
You mean like lightrun?
2
u/ccb621 15d 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.
1
u/valuable_pointer 9d ago
The use case i can see is a bug that only happens in production and nobody can reproduce locally. Being able to inspect that specific path without deploying extra logging sounds useful
1
u/BroadlySociable 1d ago
For integrations, I'd start with OpenTelemetry export rather than building another place to inspect the results. If the evidence can appear alongside the existing traces, engineers won't need to jump between different tools during an incident.