Repository navigation
Finish Kafka producer spans when serialization throws - #13567
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
Conversation
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
Kafka / producer-benchmarkParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics. See unchanged results
|
Kafka / consumer-benchmarkParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics. See unchanged results
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
Static review supports the span lifecycle handling: synchronous failures finish after restoring the caller’s scope, while successful sends remain callback-owned.
🤖 Bits Code Review · Commit 72450c5
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
Build pipeline has failing jobs for 802d58b: What to do next?
|
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What Does This Do
Finish the
kafka.produceerror span whenKafkaProducer.sendthrows synchronously. Apply the fix to both Kafka producer instrumentations.Motivation
A synchronous serializer exception can escape
sendbefore Kafka invokes the producer callback. The send advice recorded the error and closed its scope, leaving the span unfinished.Additional Notes
The exceptional exit finishes the span after restoring the caller’s scope. Kafka’s callback continues to finish spans for sends it completes.
Verification
Prepared with AI assistance.