[Dynamic Instrumentation] DEBUG-2387 Sample evaluation error snapshots#8515
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e71944f06
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (ProbeInfo.HasCondition && !sampler.Sample()) | ||
| { | ||
| shouldStopCapture = true; |
There was a problem hiding this comment.
Route caught evaluation errors through sampler
For conditional probes where GetOrCreateEvaluator().Evaluate(...) itself throws, the catch above converts the exception into evaluationResult.Errors and returns immediately, so execution never reaches this new sampler check. Those evaluation-error snapshots still bypass rate limiting on every invocation; route the catch-created result through the same HasError sampling path before returning.
Useful? React with 👍 / 👎.
BenchmarksBenchmark execution time: 2026-04-28 13:07:51 Comparing candidate commit ddd8261 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 60 known flaky benchmarks, 27 flaky benchmarks without significant changes.
|
tylfin
left a comment
There was a problem hiding this comment.
🙌 thanks for addressing this one
3e71944 to
ddd8261
Compare
Summary of changes
messagefrom the first evaluation error when expression evaluation fails.Reason for change
Test coverage
ProbeProcessorTests.ConditionEvaluationErrorsAreDroppedWhenSamplerRejects|ProbeProcessorTests.ConditionEvaluationErrorsAreCapturedWhenSamplerKeeps|DebuggerSnapshotCreatorTests.Message_UsesFirstEvaluationError