Skip to content

Commit 59a08a5

Browse files
committed
fix: report failed capture-expression evaluations instead of dropping
A capture expression that fails to evaluate was silently discarded (ddog_evaluation_error_drop + continue), so the customer got no key and no error. Submit the evaluation-error snapshot instead, matching the metric-probe path and the other tracers, which surface failed capture expressions rather than omitting them.
1 parent 024fe4a commit 59a08a5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tracer/live_debugger.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,10 @@ static void dd_log_probe_add_capture_fields(ddog_DebuggerCapture *capture, dd_lo
572572
ddog_ValueEvaluationResult result = ddog_evaluate_value(exprs[i].expr, &ctx);
573573

574574
if (result.tag == DDOG_VALUE_EVALUATION_RESULT_ERROR) {
575-
ddog_evaluation_error_drop(result.error);
575+
// Surface per-expression evaluation failures instead of dropping them,
576+
// matching the metric-probe path and the other tracers (which report
577+
// failed capture expressions rather than silently omitting them).
578+
dd_submit_probe_eval_error_snapshot(&def->parent.probe, result.error);
576579
continue;
577580
}
578581

0 commit comments

Comments
 (0)