Repository navigation
Conversation
dougqh
force-pushed
the
dougqh/w3c-merge-from-constants
branch
from
November 23, 2026 21:17
eff7d17 to
752072b
Compare
dougqh
force-pushed
the
dougqh/kafka-value-views
branch
from
November 23, 2026 21:17
cf19f37 to
afee6bc
Compare
Contributor
Contributor
🟢 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
|
dougqh
force-pushed
the
dougqh/w3c-merge-from-constants
branch
from
November 23, 2026 23:36
752072b to
e23c679
Compare
dougqh
force-pushed
the
dougqh/kafka-value-views
branch
from
November 23, 2026 23:36
afee6bc to
20f4cf5
Compare
dougqh
force-pushed
the
dougqh/w3c-merge-from-constants
branch
from
November 23, 2026 23:47
e23c679 to
3c580c3
Compare
dougqh
force-pushed
the
dougqh/kafka-value-views
branch
from
November 23, 2026 23:47
20f4cf5 to
019c24c
Compare
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
|
dougqh
force-pushed
the
dougqh/kafka-value-views
branch
from
November 24, 2026 02:33
019c24c to
f1f822e
Compare
dougqh
force-pushed
the
dougqh/w3c-merge-from-constants
branch
from
November 24, 2026 02:33
3c580c3 to
aeb9b36
Compare
dougqh
force-pushed
the
dougqh/kafka-value-views
branch
from
November 24, 2026 18:30
f1f822e to
65a1922
Compare
dougqh
force-pushed
the
dougqh/w3c-merge-from-constants
branch
from
November 24, 2026 18:30
aeb9b36 to
9f359c0
Compare
dougqh
force-pushed
the
dougqh/kafka-value-views
branch
from
November 24, 2026 20:10
65a1922 to
e6f4a95
Compare
dougqh
force-pushed
the
dougqh/w3c-merge-from-constants
branch
from
November 24, 2026 20:10
9f359c0 to
100f7f1
Compare
…terpreter When the Datadog headers have already given a context, compound extraction only needs a few parts of the W3C trace context to merge into it, but ran the W3C interpreter over every cached header to get them. With a carrier that knows each key's header constant (the composite propagator's cache), the merge now reads traceparent and tracestate straight from it: the same handling as the interpreter (trimming, multiple traceparents, joined tracestates), the same traceparent parse, now shared as static helpers, and the same tracestate parse. A mismatched trace id still builds the whole W3C context, for the span link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dougqh
force-pushed
the
dougqh/kafka-value-views
branch
from
November 24, 2026 21:00
e6f4a95 to
effc650
Compare
dougqh
force-pushed
the
dougqh/w3c-merge-from-constants
branch
from
November 24, 2026 21:00
100f7f1 to
4cd9ccf
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
When the Datadog headers have already given a context, compound extraction merges the W3C trace context into it. With a carrier that knows each key's header constant (the composite propagator's cache), the merge now reads
traceparentandtracestatestraight from it, instead of running the W3C interpreter over every cached header. Extracted contexts are unchanged.Stacked on #13620.
Additional Notes
Same handling as the interpreter:
traceparentis trimmed, and a secondtraceparentmeans no context to merge;tracestateis trimmed, and the non-empty ones are joined with,;Same parse: the interpreter's
traceparentparse is split into static helpers (validateTraceParent,traceParentTraceId,traceParentSpanId,traceParentPriority) that both paths call, and thetracestateparse is unchanged.Falls back to the interpreter when header names are being logged, or when the carrier has a trace context key without a constant (a key the composite cache couldn't classify).
A mismatched trace id still builds the whole W3C context, for the span link (through
extract, which gives whatcompleteExtractiondid).Tests (
ExtractorKeysForkedTest.mergingFromHeaderConstantsMatchesInterpretingEveryKey): runs the full compound-extraction corpus through both paths and checks the contexts are identical. That's everytraceparentagainst everytracestate, with Datadog headers matching, mismatching or absent, and all priorities and tags.CompoundExtractionGoldenTestpasses unchanged.Numbers (
KafkaFetchedHeadersBenchmark, same 5-vCPU Linux Xeon, JDK 21, BASE and this PR each run twice, interleaved, 5 forks per run): medians of all 10 forks per cell, since the sandbox was noisy in some runs:appHeadersThe interpreter run was a modest part of the merge's cost; most of it is parsing, which Check tracestate members in one pass and skip t.* keys the merge never reads #13610 and Read only the priority and parent id from a lower-priority W3C tracestate #13650 address. With Read only the priority and parent id from a lower-priority W3C tracestate #13650's change stacked on top (same runs),
fetchedAccessoris about −10% vs BASE.🤖 Generated with Claude Code