Logs record events your code was written to report. Use them first, because they are already there.
Traces record the path of a request across services. Use them to find which service and which call failed.
Live snapshots record the variable state at one line of running code, at the moment it executes. Use them when logs and traces show where the failure happened but not why.
The usual order on an incident is logs, then traces, then a live snapshot on the line the trace points to.
Logs, traces and live snapshots each answer a different question about a production failure, so the right one depends on which piece of data is missing. Logs report what the code said happened, and traces show where a request went and how long each hop took. A live snapshot shows the values the code was holding on a specific line when the failure occurred, including values nobody thought to log. Engineers lose hours when they ask a log for an answer only a snapshot can give, then add a log line, redeploy and wait for the bug to return. This guide maps each signal to the question it answers, shows where each one runs out, and gives a decision order for the next incident.
What does each signal record?
Each signal records a different slice of a running system. The OpenTelemetry signals reference defines a trace as the path of a request through an application and a log as a recording of an event. A live snapshot is newer and has no OpenTelemetry definition. It is a capture of the local variables, the call stack and any watch expressions at one line of code, taken while that line runs on real traffic.
The table below compares the three signals on what they hold and what they need from you in advance.
Signal
What it records
Decided when
Typical gap
Logs
Messages and fields the code was written to emit
When the code was written
Any value that was never logged
Traces
Spans, timings and attributes for each hop of a request
When instrumentation was set up
Values inside a function, and requests dropped by sampling
Live snapshots
Local variables, call stack and watch expressions at one line
During the incident
Requests that ran before the snapshot was placed
The column that matters is "decided when". Logs and traces only contain what someone chose to record before the failure. A snapshot is chosen after the failure, on the line the evidence points to.
When are logs enough?
Logs are enough when the failure throws an error with a clear message, or when the code already logs the values that explain it. A timeout from a named dependency, or a validation error that prints the rejected field, falls into this group. Search the logs for the error, then confirm the cause in the code.
Logs fall short in two common cases. The first is a failure that throws nothing, such as an order saved with the wrong status or a discount applied twice. The second is a failure where the error appears far from its cause. The exception fires in the payment step while the bad value was set three functions earlier, in code that logs nothing. Our breakdown of where backend teams lose hours in a production incident traces a large share of that lost time to this second case.
Adding more logs in advance does not close the gap. Log volume grows faster than anyone reads it, and the OWASP Logging Cheat Sheet lists data that should usually stay out of logs entirely, including access tokens and sensitive personal data. The value you need is often the value you were told not to log.
When do traces find the cause?
Traces find the cause when the failure is about where a request went or how long it took. A trace shows that the order request called the payment service, the payment service called a third-party API, and that third call took 9 seconds before returning a 404. For latency and cross-service errors, a trace is the fastest route to the failing hop.
Traces have two limits for root cause work. Spans record the boundaries of a call, plus whatever attributes the instrumentation adds, so the values inside the function stay invisible. Traces are also sampled. The OpenTelemetry sampling guide describes head sampling, where the keep or drop decision is made as early as possible, before the system knows whether the request will fail. A rare failure can land in the dropped portion.
A trace that ends at webhooks.ts, with a 404 from a downstream service, tells you where to look. It does not tell you what status held when the handler made its decision.
What is a live snapshot?
A live snapshot is a read-only capture of program state at one line of code in a running service. You choose the line, the snapshot waits for that line to execute on live traffic, records the local variables and the call stack at that moment, then removes itself. The service keeps running at full speed, and nothing is redeployed.
Live snapshots come from dynamic instrumentation, which means adding instrumentation to a running process without changing its source code. Our explainer on what dynamic instrumentation is covers how the runtime makes this possible.
HyperProbe is an AI on-call agent for live production debugging, built on dynamic instrumentation. When an alert fires, it reads the logs and traces you already have. When they do not explain the failure, it places a read-only probe on the suspect line and captures the state there. Read-only probes do not pause production, change source code or require a redeploy. PII is redacted at the agent before capture, and probes self-clear on a time limit and rate limit.
A capture from the line the trace pointed to looks like this.
Live snapshot · src/api/webhooks.ts:78 · captured 02:50:14 UTC
status = "PENDING" // no handler for this state
idempotencyKey = "ord_8812f" // written before state confirmed
db.insert never called
None of those three facts was in a log line or a span attribute. The snapshot turns "the order status endpoint returns 404" into "the webhook handler has no branch for PENDING, so the insert never runs".
Which signal answers which question?
The question you are asking on an incident decides the signal, so start from the question. The table below pairs common incident questions with the signal that answers each one fastest.
Question during the incident
Best first signal
Did the service throw an error, and what was the message?
Logs
Which service or dependency failed or slowed down?
Traces
How many requests are affected, and since when?
Metrics and traces
What value did this variable hold when the request failed?
Live snapshot
Why did this branch run instead of that one?
Live snapshot
Why does it fail for one customer and not the others?
Live snapshot with a condition
The last three rows share a pattern. They ask about state inside a function, and state inside a function is the one thing logs and traces only hold when someone predicted the question. Our guide to inspecting live production variables without logs walks through those cases step by step.
What does a snapshot add to OpenTelemetry?
A snapshot adds the variable state that OpenTelemetry does not collect. Teams already running OpenTelemetry and an APM have good coverage of requests, latency and errors. The gap is the inside of the function at the failing line, and that gap usually gets filled with a new log line and a redeploy.
The table below shows how the three fit together on one incident, with no tool replacing another.
Step
Signal
What it contributes
1
Alert from your APM or metrics
The symptom and its scope
2
Logs
Error messages and known fields
3
Traces
The failing service, endpoint and span
4
Live snapshot
The variable state at the failing line
HyperProbe reads from step 1 to step 3 before it places anything. It goes past them only when the answer is not already there, so your existing APM and alerting setup stay as they are. The comparison of AI SRE and APM covers the same boundary from the budget side.
When should you not use snapshots?
Live snapshots are the wrong tool for some failures, and the tradeoffs are worth stating plainly.
Failures that already passed. A snapshot captures executions that happen after it is placed. It cannot replay a request that ran yesterday with no snapshot in place. A one-off failure that never recurs needs logs and traces.
Infrastructure and network failures. DNS errors and load balancer misconfiguration happen outside application code, so there is no line to place a snapshot on.
Aggregate questions. "How many checkouts failed in the last hour" is a metrics question. A snapshot answers for a single execution, not the whole population.
Unsupported runtimes. Dynamic instrumentation depends on the language runtime. HyperProbe supports Node.js, TypeScript, Java, Kotlin and Python.
Overhead is the other question evaluators raise, and it should be tested on your own service. HyperProbe's benchmark measured under 1% CPU overhead at 3,000 requests per second, with about 50MB of memory and no measurable added latency.
How do you choose for an incident?
Choose by checking which signal already holds the answer, in order of cost. Each step below is cheaper than the one after it, and each one either finds the cause or narrows the line for the next step.
Read the logs for the error message and the fields around it. Stop here when the message names the cause.
Open the trace for a failing request. Stop here when the failing hop and its attributes explain the failure.
Place a live snapshot on the line the trace points to. Add a condition when the failure affects one customer or one input.
Confirm the root cause against the captured values before anyone writes the fix.
The criteria below decide whether step 3 is available to your team when the next incident starts.
Criterion
Evidence to ask for
Runtime coverage
Your languages and versions on the supported list
Safety
Read-only capture, no thread pause, automatic cleanup
Data handling
Redaction before data leaves the process, self-hosting option
Overhead
A published benchmark with load and memory figures
Workflow
Placement from the IDE or a coding agent, not only a web console
The pattern behind a slow incident is a missing value, followed by a new log line, a redeploy and a wait for the failure to come back. Logs and traces cover what you predicted. A live snapshot covers what you did not, on the line the evidence points to, without changing the code.
Bring one incident your logs could not explain to a 30-minute walkthrough, and HyperProbe will work it with you on your own service until it reaches a confirmed root cause. The first incident we work with you is free. To start on your own, HyperProbe is free forever on one service with unlimited probes. Install the SDK from the quickstart and place your first snapshot on the line your last trace ended at.
Frequently asked questions
What is the difference between logs, traces and live snapshots?
Logs record events the code was written to report. Traces record the path of a request across services, with timings and attributes for each hop. A live snapshot records the local variables and call stack at one line of running code, at the moment it executes, including values that were never logged or added to a span.
Which do I need to find a production root cause?
Start with logs for the error message, then traces to find the failing service and call. When both show where the failure happened but not why, place a live snapshot on the line the trace points to. The snapshot captures the variable state that explains the failure, without adding a log line or redeploying.
What does a live debugger add to OpenTelemetry and an APM?
OpenTelemetry and an APM record requests, latency, errors and the attributes you chose in advance. A live debugger adds the variable state inside a function at a specific line, chosen during the incident. It reads the data you already have and fills the gap that usually leads to a new log line and a redeploy.
Can I capture a variable in production without redeploying?
Yes. A live snapshot, built on dynamic instrumentation, attaches to running code and records local variables the next time the line executes. HyperProbe places read-only probes that do not pause production, change source code or require a redeploy, and probes self-clear on a time limit and rate limit.
When should you not use live snapshots?
Live snapshots do not help with failures that already happened and never recur, because they capture only executions after placement. They also do not cover network or infrastructure failures such as DNS errors, or aggregate questions about how many requests failed. Logs, traces and metrics remain the right tools for those cases.
Do live snapshots slow down production?
A well-built snapshot captures asynchronously and never pauses the thread that hits it. HyperProbe measured under 1% CPU overhead at 3,000 requests per second, with about 50MB of memory and no measurable added latency. Run your own load test on a busy service before rollout to confirm the figure on your traffic.
Shailendra Singh is the founder and CEO of HyperProbe (YC S26), an AI on-call agent that debugs production incidents by capturing evidence directly from running services. He has over a decade of experience building and running production systems, starting at Applied Materials before moving into startup operating and engineering leadership roles, including at a company that later became a unicorn. He founded and ran Transporter.city from 2017 to 2021, then spent three years building HyperTest before founding HyperProbe with Karan Raina. He writes about production debugging and incident response.