Repository navigation
Conversation
Preserve baggage during record consumption, downstream sends, and producer callbacks using the existing UTF-8 baggage header format. Allow legacy iteration scopes to carry full contexts and preserve literal plus signs during baggage decoding.
Use the existing literal replacement helper only for baggage strings containing plus signs, and share record-versus-caller baggage precedence in the Kafka common helper. Align the new regressions with repository conventions.
Suppress caller baggage for invalid spans at injection time, including the retry for read-only record headers.
🟡 Java Benchmark SLOs — Performance SLO warning (near threshold)
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. |
37de857 to
7f78ff1
Compare
55db763 to
dc22da0
Compare
091840f to
d2e64ae
Compare
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 analysis raised no concrete defect in Kafka baggage forwarding, callback context restoration, or iteration-scope handling. Runtime behavior remains unverified because tests were not executed and production telemetry was excluded.
🤖 Bits Code Review · Commit d2e64ae
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
|
What Does This Do
Preserves W3C baggage while processing Kafka records, forwarding messages, and running producer completion callbacks, in both Kafka client instrumentations.
Motivation
Kafka extracted baggage but discarded it when activating the consumer span, and producers injected only the span. This prevented applications from reading and forwarding received baggage.
Additional Notes
Uses the existing baggage configuration and OpenTelemetry-compatible
baggageheader format: a percent-encoded W3C baggage string stored as UTF-8 bytes.Legacy iteration scopes can now carry a full context while retaining their existing cleanup and timeout behavior. Also corrects shared baggage decoding so literal
+characters survive extraction.Validation: baggage and iteration-scope regressions, baseline and latest Kafka dependency tests, existing trace/context-swap and producer lifecycle tests, shared baggage decoding on Java 8, and Spotless checks.