Repository navigation
Conversation
|
@codex review |
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.
The enricher's throughput includes Kafka client shutdown, so group-leave or producer-close delays are reported as record-processing cost.
🤖 Bits Code Review · Commit fc588cb
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fc588cb035
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
🟢 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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: faafd19f69
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
This comment has been minimized.
This comment has been minimized.
|
@ValentinZakharov @AlexeyKuznetsov-DD gentle nudge on this one when you have a moment. It's harness-only ( |
AlexeyKuznetsov-DD
left a comment
There was a problem hiding this comment.
Approved, left some notes + issues found with Codex.
There was a problem hiding this comment.
The PR adds a Kafka consume–transform–produce benchmark covering extraction and injection, with configurable header forwarding and per-record propagation checks. Client-shutdown timing and final-span cleanup are fixed, but the preflight still accepts matching trace IDs when the output span ID is missing.
🤖 Bits Code Review · Commit 91a6566
There was a problem hiding this comment.
More details
The PR adds a Kafka consume–transform–produce benchmark covering extraction and injection, with configurable header forwarding and per-record propagation checks. Client shutdown is excluded from timing, final consume-span cleanup is fixed, and preflight now rejects missing span IDs; no reportable findings remain.
🤖 Bits Code Review · Commit 7a461f0
|
/merge |
|
View all feedbacks in Devflow UI.
It will be processed automatically as soon as GitHub reports it as mergeable. View in MergeQueue UI.
devflow unqueued this merge request: It did not become mergeable within the expected time |
The enricher consumes the pre-filled topic, appends a few bytes to each record and produces it to another topic. Each record's consume span continues the upstream trace and its send gets a child produce span that injects headers, so extraction and injection are measured on the same trace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s at 128m A 64m heap leaves the enricher GC-bound even without the agent, because the producer's 32 MB send buffer takes half of it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…irmed one Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…output topic - End the measured window right after producer.flush(), before closing the clients, so consumer shutdown (leaving the group) isn't counted as processing. - Write each run to its own output topic and delete it afterwards; topic retention alone left minutes of output on disk, since the broker only checks retention every 5 minutes. - Let the enricher preflight compare W3C traceparent trace ids when Datadog headers aren't injected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The instrumented iterator finishes a record's consume span only when it advances or runs out, so breaking after the last counted record left that span unfinished, and its trace, produce span included, was never written. Finish the batch that reaches the target instead; the count can exceed it by up to one poll, and records/s uses the actual count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With forwarded headers, the producer instrumentation starts the produce span from the upstream context in them, as for Kafka Streams users, so it's a sibling of the consume span. That's the point of the mode, so say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The enricher preflight compared only each topic's first record and never passed the copy-headers mode. It now checks all 20 in offset order, needs a new span id on each output record, reads with --timeout-ms, and deletes the topics it created however it exits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed delete was silent, so later runs measured alongside the leftover topic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…codes Name the parent as the forwarded upstream context, a sibling of the consume span only without a kafka.deliver span. List the exit codes and report invalid arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A missing span id parses as '-', which never equals a real input span, so a record with no output produce span passed the new-span check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7a461f0 to
95cc9ee
Compare
There was a problem hiding this comment.
More details
The preflight checks every record’s trace continuity and span-ID replacement in the selected header mode. Live Kafka behavior and benchmark measurements remain unverified because Kafka is unavailable in the environment.
🤖 Bits Code Review · Commit 95cc9ee
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
Build pipeline has failing jobs for 2ef8f98: What to do next?
|
Follow-up to #13051: adds a Kafka enricher workload to the Kafka macro benchmark, covering both
sides of propagation on one trace.
From Claude:
The consumer benchmark only extracts, and the producer benchmark only injects (from root spans). The
enricher is the stream-processing shape in between: it consumes the pre-filled topic, appends a few
bytes to each record, and produces it to another topic, one record at a time on one thread. Each
record's consume span continues the upstream trace, and its send gets a child produce span that
injects headers for the next service, so extraction, span creation and injection all run per record.
Enricher.java: the consume → transform → produce loop, run as a single source file on Kafka'sown jars (no build step). Timed from the first record received to the last send acknowledged, so
startup and the group join are excluded. Exits non-zero if the topic runs dry or any send fails,
reporting the first failure.
run-enricher.sh: same shape asrun-consumer.sh(heap sweep, reps, rotating variant order, GClogs). Defaults: 3M records, heaps 512m/256m/128m; at 64m the enricher is GC-bound even without
the agent.
ENRICH_COPY_HEADERS=trueforwards input headers to the output records, as KafkaStreams does, so the tracer replaces its headers rather than adding them.
preflight-enricher.sh: checks each output record carries its input record's trace id, i.e. thetrace continues end to end.
Analyze.javasummarizes enricher results;common.shgainsENRICH_TOPIC; README covers thethree workloads.
First results (one laptop, JDK 17, Agent stub, 3M records, 3 reps, 256m): NoAgent ~702k
records/s; master adds 6.07 µs per record, roughly double the consumer-only cost. Master plus the
Kafka header tweaks (#13165, #13171, #13181, #13182) measured 5.52 µs (+7.9% throughput, runs
non-overlapping), the first workload where the inject-side changes show.
🤖 Generated with Claude Code