Skip to content

Add Kafka cluster ID and offset tags to producer/consumer spans#11107

Draft
piochelepiotr wants to merge 1 commit intomasterfrom
pwolski/kafka-span-link-tags
Draft

Add Kafka cluster ID and offset tags to producer/consumer spans#11107
piochelepiotr wants to merge 1 commit intomasterfrom
pwolski/kafka-span-link-tags

Conversation

@piochelepiotr
Copy link
Copy Markdown
Contributor

Summary

  • Add messaging.kafka.cluster.id tag to both producer and consumer Kafka spans, always (not gated on Data Streams)
  • Add broker-assigned partition and offset tags to producer spans via the async callback (using RecordMetadata)
  • Consumer spans already had partition and offset; no change there
  • Remove isDataStreamsEnabled() guard from extractClusterId() in KafkaConsumerInstrumentationHelper (both 0.11 and 3.8 modules)
  • Always initialize MetadataState in ProducerConstructorAdvice so cluster ID is available at produce time regardless of DSM config

These tags enable linking a trace span directly to a specific Kafka message (cluster + topic + partition + offset).

Notes

  • Producer offset is only set when a callback is used (it's a broker-assigned value returned asynchronously); fire-and-forget usage via Future will not have the offset tag
  • Both kafka-clients-0.11 and kafka-clients-3.8 modules updated in parallel

Test plan

  • Run ./gradlew :dd-java-agent:instrumentation:kafka:kafka-clients-0.11:test
  • Run ./gradlew :dd-java-agent:instrumentation:kafka:kafka-clients-3.8:test
  • Verify consumer span has messaging.kafka.cluster.id, partition, offset, kafka.group, and messaging.destination.name tags
  • Verify producer span has messaging.kafka.cluster.id, partition, offset, and messaging.destination.name tags

tag: no release note
tag: ai generated

🤖 Generated with Claude Code

Tag producer spans with messaging.kafka.cluster.id, topic, and
broker-assigned partition/offset (via callback). Tag consumer spans with
messaging.kafka.cluster.id, topic, consumer group, and offset. These tags
enable linking from a span directly to a specific Kafka message.

Previously the cluster ID was only extracted when Data Streams was enabled;
MetadataState is now always initialized on the producer so cluster ID flows
through regardless of DSM configuration.

tag: ai generated

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Apr 13, 2026

Kafka / producer-benchmark

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master pwolski/kafka-span-link-tags
git_commit_date 1776110723 1776115731
git_commit_sha 9f89a0b f2a32a7
See matching parameters
Baseline Candidate
ci_job_date 1776116738 1776116738
ci_job_id 1591723032 1591723032
ci_pipeline_id 107484593 107484593
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
jdkVersion 11.0.25 11.0.25
jmhVersion 1.36 1.36
jvm /usr/lib/jvm/java-11-openjdk-amd64/bin/java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
jvmArgs -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/go/src/github.com/DataDog/apm-reliability/dd-trace-java/platform/src/producer-benchmark/build/tmp/jmh -Duser.country=US -Duser.language=en -Duser.variant -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/go/src/github.com/DataDog/apm-reliability/dd-trace-java/platform/src/producer-benchmark/build/tmp/jmh -Duser.country=US -Duser.language=en -Duser.variant
vmName OpenJDK 64-Bit Server VM OpenJDK 64-Bit Server VM
vmVersion 11.0.25+9-post-Ubuntu-1ubuntu122.04 11.0.25+9-post-Ubuntu-1ubuntu122.04

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean throughput
scenario:not-instrumented/KafkaProduceBenchmark.benchProduce same
scenario:only-tracing-dsm-disabled-benchmarks/KafkaProduceBenchmark.benchProduce same
scenario:only-tracing-dsm-enabled-benchmarks/KafkaProduceBenchmark.benchProduce unsure
[-4519.696op/s; -139.835op/s] or [-3.067%; -0.095%]

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Apr 13, 2026

Benchmarks

⚠️ Warning: Baseline build not found for merge-base commit. Comparing against the latest commit on master instead.

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master pwolski/kafka-span-link-tags
git_commit_date 1776110723 1776115731
git_commit_sha 9f89a0b f2a32a7
release_version 1.62.0-SNAPSHOT~9f89a0b26c 1.62.0-SNAPSHOT~f2a32a7836
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1776117457 1776117457
ci_job_id 1591723027 1591723027
ci_pipeline_id 107484593 107484593
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-eylpv965 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-eylpv965 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
module Agent Agent
parent None None

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 12 unstable metrics.

Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.62.0-SNAPSHOT~f2a32a7836, baseline=1.62.0-SNAPSHOT~9f89a0b26c

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.057 s) : 0, 1057127
Total [baseline] (8.826 s) : 0, 8825777
Agent [candidate] (1.054 s) : 0, 1053897
Total [candidate] (8.8 s) : 0, 8799632
section iast
Agent [baseline] (1.223 s) : 0, 1223310
Total [baseline] (9.503 s) : 0, 9503018
Agent [candidate] (1.221 s) : 0, 1221376
Total [candidate] (9.548 s) : 0, 9548084
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.057 s -
Agent iast 1.223 s 166.183 ms (15.7%)
Total tracing 8.826 s -
Total iast 9.503 s 677.241 ms (7.7%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.054 s -
Agent iast 1.221 s 167.479 ms (15.9%)
Total tracing 8.8 s -
Total iast 9.548 s 748.452 ms (8.5%)
gantt
    title insecure-bank - break down per module: candidate=1.62.0-SNAPSHOT~f2a32a7836, baseline=1.62.0-SNAPSHOT~9f89a0b26c

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.251 ms) : 0, 1251
crashtracking [candidate] (1.224 ms) : 0, 1224
BytebuddyAgent [baseline] (634.592 ms) : 0, 634592
BytebuddyAgent [candidate] (633.892 ms) : 0, 633892
AgentMeter [baseline] (29.394 ms) : 0, 29394
AgentMeter [candidate] (29.289 ms) : 0, 29289
GlobalTracer [baseline] (248.046 ms) : 0, 248046
GlobalTracer [candidate] (247.74 ms) : 0, 247740
AppSec [baseline] (31.995 ms) : 0, 31995
AppSec [candidate] (31.868 ms) : 0, 31868
Debugger [baseline] (58.863 ms) : 0, 58863
Debugger [candidate] (58.679 ms) : 0, 58679
Remote Config [baseline] (591.015 µs) : 0, 591
Remote Config [candidate] (601.391 µs) : 0, 601
Telemetry [baseline] (8.002 ms) : 0, 8002
Telemetry [candidate] (8.005 ms) : 0, 8005
Flare Poller [baseline] (8.155 ms) : 0, 8155
Flare Poller [candidate] (6.499 ms) : 0, 6499
section iast
crashtracking [baseline] (1.236 ms) : 0, 1236
crashtracking [candidate] (1.217 ms) : 0, 1217
BytebuddyAgent [baseline] (801.726 ms) : 0, 801726
BytebuddyAgent [candidate] (800.269 ms) : 0, 800269
AgentMeter [baseline] (11.333 ms) : 0, 11333
AgentMeter [candidate] (11.395 ms) : 0, 11395
GlobalTracer [baseline] (238.433 ms) : 0, 238433
GlobalTracer [candidate] (238.617 ms) : 0, 238617
AppSec [baseline] (32.51 ms) : 0, 32510
AppSec [candidate] (32.57 ms) : 0, 32570
Debugger [baseline] (57.974 ms) : 0, 57974
Debugger [candidate] (58.027 ms) : 0, 58027
Remote Config [baseline] (521.705 µs) : 0, 522
Remote Config [candidate] (1.116 ms) : 0, 1116
Telemetry [baseline] (13.834 ms) : 0, 13834
Telemetry [candidate] (12.605 ms) : 0, 12605
Flare Poller [baseline] (3.475 ms) : 0, 3475
Flare Poller [candidate] (3.612 ms) : 0, 3612
IAST [baseline] (25.718 ms) : 0, 25718
IAST [candidate] (25.698 ms) : 0, 25698
Loading
Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.62.0-SNAPSHOT~f2a32a7836, baseline=1.62.0-SNAPSHOT~9f89a0b26c

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.056 s) : 0, 1056480
Total [baseline] (11.072 s) : 0, 11071546
Agent [candidate] (1.052 s) : 0, 1052121
Total [candidate] (10.988 s) : 0, 10988436
section appsec
Agent [baseline] (1.244 s) : 0, 1244281
Total [baseline] (11.063 s) : 0, 11063121
Agent [candidate] (1.244 s) : 0, 1244125
Total [candidate] (11.156 s) : 0, 11155816
section iast
Agent [baseline] (1.223 s) : 0, 1222877
Total [baseline] (11.367 s) : 0, 11367439
Agent [candidate] (1.226 s) : 0, 1226463
Total [candidate] (11.204 s) : 0, 11204243
section profiling
Agent [baseline] (1.181 s) : 0, 1180891
Total [baseline] (10.984 s) : 0, 10983989
Agent [candidate] (1.186 s) : 0, 1185555
Total [candidate] (11.184 s) : 0, 11184332
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.056 s -
Agent appsec 1.244 s 187.8 ms (17.8%)
Agent iast 1.223 s 166.397 ms (15.8%)
Agent profiling 1.181 s 124.411 ms (11.8%)
Total tracing 11.072 s -
Total appsec 11.063 s -8.425 ms (-0.1%)
Total iast 11.367 s 295.892 ms (2.7%)
Total profiling 10.984 s -87.557 ms (-0.8%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.052 s -
Agent appsec 1.244 s 192.004 ms (18.2%)
Agent iast 1.226 s 174.342 ms (16.6%)
Agent profiling 1.186 s 133.434 ms (12.7%)
Total tracing 10.988 s -
Total appsec 11.156 s 167.381 ms (1.5%)
Total iast 11.204 s 215.807 ms (2.0%)
Total profiling 11.184 s 195.896 ms (1.8%)
gantt
    title petclinic - break down per module: candidate=1.62.0-SNAPSHOT~f2a32a7836, baseline=1.62.0-SNAPSHOT~9f89a0b26c

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.209 ms) : 0, 1209
crashtracking [candidate] (1.209 ms) : 0, 1209
BytebuddyAgent [baseline] (631.056 ms) : 0, 631056
BytebuddyAgent [candidate] (629.59 ms) : 0, 629590
AgentMeter [baseline] (29.294 ms) : 0, 29294
AgentMeter [candidate] (29.276 ms) : 0, 29276
GlobalTracer [baseline] (247.842 ms) : 0, 247842
GlobalTracer [candidate] (247.282 ms) : 0, 247282
AppSec [baseline] (31.975 ms) : 0, 31975
AppSec [candidate] (31.792 ms) : 0, 31792
Debugger [baseline] (59.816 ms) : 0, 59816
Debugger [candidate] (59.477 ms) : 0, 59477
Remote Config [baseline] (591.874 µs) : 0, 592
Remote Config [candidate] (588.822 µs) : 0, 589
Telemetry [baseline] (8.071 ms) : 0, 8071
Telemetry [candidate] (8.009 ms) : 0, 8009
Flare Poller [baseline] (10.544 ms) : 0, 10544
Flare Poller [candidate] (9.007 ms) : 0, 9007
section appsec
crashtracking [baseline] (1.23 ms) : 0, 1230
crashtracking [candidate] (1.22 ms) : 0, 1220
BytebuddyAgent [baseline] (659.43 ms) : 0, 659430
BytebuddyAgent [candidate] (660.717 ms) : 0, 660717
AgentMeter [baseline] (12.008 ms) : 0, 12008
AgentMeter [candidate] (12.02 ms) : 0, 12020
GlobalTracer [baseline] (247.999 ms) : 0, 247999
GlobalTracer [candidate] (247.701 ms) : 0, 247701
AppSec [baseline] (184.362 ms) : 0, 184362
AppSec [candidate] (183.557 ms) : 0, 183557
Debugger [baseline] (65.799 ms) : 0, 65799
Debugger [candidate] (65.459 ms) : 0, 65459
Remote Config [baseline] (609.714 µs) : 0, 610
Remote Config [candidate] (592.771 µs) : 0, 593
Telemetry [baseline] (8.498 ms) : 0, 8498
Telemetry [candidate] (8.569 ms) : 0, 8569
Flare Poller [baseline] (3.568 ms) : 0, 3568
Flare Poller [candidate] (3.472 ms) : 0, 3472
IAST [baseline] (24.511 ms) : 0, 24511
IAST [candidate] (24.509 ms) : 0, 24509
section iast
crashtracking [baseline] (1.225 ms) : 0, 1225
crashtracking [candidate] (1.224 ms) : 0, 1224
BytebuddyAgent [baseline] (799.371 ms) : 0, 799371
BytebuddyAgent [candidate] (803.019 ms) : 0, 803019
AgentMeter [baseline] (11.36 ms) : 0, 11360
AgentMeter [candidate] (11.349 ms) : 0, 11349
GlobalTracer [baseline] (238.578 ms) : 0, 238578
GlobalTracer [candidate] (238.32 ms) : 0, 238320
AppSec [baseline] (32.761 ms) : 0, 32761
AppSec [candidate] (31.201 ms) : 0, 31201
Debugger [baseline] (60.35 ms) : 0, 60350
Debugger [candidate] (60.671 ms) : 0, 60671
Remote Config [baseline] (538.322 µs) : 0, 538
Remote Config [candidate] (526.627 µs) : 0, 527
Telemetry [baseline] (12.677 ms) : 0, 12677
Telemetry [candidate] (14.309 ms) : 0, 14309
Flare Poller [baseline] (3.502 ms) : 0, 3502
Flare Poller [candidate] (3.636 ms) : 0, 3636
IAST [baseline] (26.056 ms) : 0, 26056
IAST [candidate] (26.001 ms) : 0, 26001
section profiling
ProfilingAgent [baseline] (94.016 ms) : 0, 94016
ProfilingAgent [candidate] (94.367 ms) : 0, 94367
crashtracking [baseline] (1.174 ms) : 0, 1174
crashtracking [candidate] (1.176 ms) : 0, 1176
BytebuddyAgent [baseline] (688.843 ms) : 0, 688843
BytebuddyAgent [candidate] (691.005 ms) : 0, 691005
AgentMeter [baseline] (9.063 ms) : 0, 9063
AgentMeter [candidate] (9.155 ms) : 0, 9155
GlobalTracer [baseline] (206.5 ms) : 0, 206500
GlobalTracer [candidate] (208.2 ms) : 0, 208200
AppSec [baseline] (32.523 ms) : 0, 32523
AppSec [candidate] (32.74 ms) : 0, 32740
Debugger [baseline] (65.565 ms) : 0, 65565
Debugger [candidate] (65.659 ms) : 0, 65659
Remote Config [baseline] (572.806 µs) : 0, 573
Remote Config [candidate] (566.209 µs) : 0, 566
Telemetry [baseline] (7.925 ms) : 0, 7925
Telemetry [candidate] (7.884 ms) : 0, 7884
Flare Poller [baseline] (3.65 ms) : 0, 3650
Flare Poller [candidate] (3.616 ms) : 0, 3616
Profiling [baseline] (94.578 ms) : 0, 94578
Profiling [candidate] (94.925 ms) : 0, 94925
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master pwolski/kafka-span-link-tags
git_commit_date 1776110723 1776115731
git_commit_sha 9f89a0b f2a32a7
release_version 1.62.0-SNAPSHOT~9f89a0b26c 1.62.0-SNAPSHOT~f2a32a7836
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1776117935 1776117935
ci_job_id 1591723028 1591723028
ci_pipeline_id 107484593 107484593
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-cpk9x1pk 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-cpk9x1pk 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

Found 0 performance improvements and 2 performance regressions! Performance is the same for 17 metrics, 17 unstable metrics.

scenario Δ mean agg_http_req_duration_p50 Δ mean agg_http_req_duration_p95 Δ mean throughput candidate mean agg_http_req_duration_p50 candidate mean agg_http_req_duration_p95 candidate mean throughput baseline mean agg_http_req_duration_p50 baseline mean agg_http_req_duration_p95 baseline mean throughput
scenario:load:insecure-bank:iast:high_load worse
[+55.456µs; +164.813µs] or [+2.196%; +6.525%]
same
[-102.435µs; +301.626µs] or [-1.390%; +4.093%]
unstable
[-202.393op/s; +126.643op/s] or [-14.419%; +9.023%]
2.636ms 7.468ms 1365.750op/s 2.526ms 7.368ms 1403.625op/s
scenario:load:petclinic:profiling:high_load unstable
[+1.444ms; +3.401ms] or [+8.169%; +19.236%]
worse
[+1.917ms; +4.516ms] or [+6.659%; +15.692%]
unstable
[-49.821op/s; +1.508op/s] or [-19.292%; +0.584%]
20.104ms 31.996ms 234.094op/s 17.681ms 28.780ms 258.250op/s
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.62.0-SNAPSHOT~f2a32a7836, baseline=1.62.0-SNAPSHOT~9f89a0b26c
    dateFormat X
    axisFormat %s
section baseline
no_agent (19.137 ms) : 18941, 19333
.   : milestone, 19137,
appsec (18.458 ms) : 18273, 18644
.   : milestone, 18458,
code_origins (17.947 ms) : 17767, 18126
.   : milestone, 17947,
iast (17.816 ms) : 17637, 17995
.   : milestone, 17816,
profiling (18.069 ms) : 17892, 18246
.   : milestone, 18069,
tracing (18.708 ms) : 18523, 18893
.   : milestone, 18708,
section candidate
no_agent (19.364 ms) : 19166, 19561
.   : milestone, 19364,
appsec (18.86 ms) : 18669, 19051
.   : milestone, 18860,
code_origins (17.642 ms) : 17468, 17815
.   : milestone, 17642,
iast (17.604 ms) : 17434, 17774
.   : milestone, 17604,
profiling (19.944 ms) : 19732, 20156
.   : milestone, 19944,
tracing (18.059 ms) : 17881, 18237
.   : milestone, 18059,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 19.137 ms [18.941 ms, 19.333 ms] -
appsec 18.458 ms [18.273 ms, 18.644 ms] -678.34 µs (-3.5%)
code_origins 17.947 ms [17.767 ms, 18.126 ms] -1.19 ms (-6.2%)
iast 17.816 ms [17.637 ms, 17.995 ms] -1.321 ms (-6.9%)
profiling 18.069 ms [17.892 ms, 18.246 ms] -1.068 ms (-5.6%)
tracing 18.708 ms [18.523 ms, 18.893 ms] -428.68 µs (-2.2%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 19.364 ms [19.166 ms, 19.561 ms] -
appsec 18.86 ms [18.669 ms, 19.051 ms] -503.684 µs (-2.6%)
code_origins 17.642 ms [17.468 ms, 17.815 ms] -1.722 ms (-8.9%)
iast 17.604 ms [17.434 ms, 17.774 ms] -1.76 ms (-9.1%)
profiling 19.944 ms [19.732 ms, 20.156 ms] 580.355 µs (3.0%)
tracing 18.059 ms [17.881 ms, 18.237 ms] -1.305 ms (-6.7%)
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.62.0-SNAPSHOT~f2a32a7836, baseline=1.62.0-SNAPSHOT~9f89a0b26c
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.265 ms) : 1253, 1277
.   : milestone, 1265,
iast (3.259 ms) : 3210, 3308
.   : milestone, 3259,
iast_FULL (6.34 ms) : 6274, 6407
.   : milestone, 6340,
iast_GLOBAL (3.617 ms) : 3566, 3668
.   : milestone, 3617,
profiling (2.265 ms) : 2244, 2287
.   : milestone, 2265,
tracing (1.875 ms) : 1859, 1891
.   : milestone, 1875,
section candidate
no_agent (1.267 ms) : 1255, 1279
.   : milestone, 1267,
iast (3.352 ms) : 3302, 3402
.   : milestone, 3352,
iast_FULL (6.185 ms) : 6121, 6248
.   : milestone, 6185,
iast_GLOBAL (3.576 ms) : 3532, 3621
.   : milestone, 3576,
profiling (2.193 ms) : 2172, 2215
.   : milestone, 2193,
tracing (1.852 ms) : 1836, 1868
.   : milestone, 1852,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.265 ms [1.253 ms, 1.277 ms] -
iast 3.259 ms [3.21 ms, 3.308 ms] 1.994 ms (157.6%)
iast_FULL 6.34 ms [6.274 ms, 6.407 ms] 5.075 ms (401.2%)
iast_GLOBAL 3.617 ms [3.566 ms, 3.668 ms] 2.352 ms (185.9%)
profiling 2.265 ms [2.244 ms, 2.287 ms] 1.0 ms (79.1%)
tracing 1.875 ms [1.859 ms, 1.891 ms] 610.172 µs (48.2%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.267 ms [1.255 ms, 1.279 ms] -
iast 3.352 ms [3.302 ms, 3.402 ms] 2.085 ms (164.6%)
iast_FULL 6.185 ms [6.121 ms, 6.248 ms] 4.918 ms (388.1%)
iast_GLOBAL 3.576 ms [3.532 ms, 3.621 ms] 2.309 ms (182.3%)
profiling 2.193 ms [2.172 ms, 2.215 ms] 926.163 µs (73.1%)
tracing 1.852 ms [1.836 ms, 1.868 ms] 584.868 µs (46.2%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master pwolski/kafka-span-link-tags
git_commit_date 1776110723 1776115731
git_commit_sha 9f89a0b f2a32a7
release_version 1.62.0-SNAPSHOT~9f89a0b26c 1.62.0-SNAPSHOT~f2a32a7836
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1776117626 1776117626
ci_job_id 1591723029 1591723029
ci_pipeline_id 107484593 107484593
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-1eyktqff 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-1eyktqff 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics.

Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.62.0-SNAPSHOT~f2a32a7836, baseline=1.62.0-SNAPSHOT~9f89a0b26c
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.657 s) : 15657000, 15657000
.   : milestone, 15657000,
appsec (15.012 s) : 15012000, 15012000
.   : milestone, 15012000,
iast (18.806 s) : 18806000, 18806000
.   : milestone, 18806000,
iast_GLOBAL (18.04 s) : 18040000, 18040000
.   : milestone, 18040000,
profiling (15.314 s) : 15314000, 15314000
.   : milestone, 15314000,
tracing (14.984 s) : 14984000, 14984000
.   : milestone, 14984000,
section candidate
no_agent (15.547 s) : 15547000, 15547000
.   : milestone, 15547000,
appsec (14.941 s) : 14941000, 14941000
.   : milestone, 14941000,
iast (18.376 s) : 18376000, 18376000
.   : milestone, 18376000,
iast_GLOBAL (18.208 s) : 18208000, 18208000
.   : milestone, 18208000,
profiling (14.76 s) : 14760000, 14760000
.   : milestone, 14760000,
tracing (15.204 s) : 15204000, 15204000
.   : milestone, 15204000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.657 s [15.657 s, 15.657 s] -
appsec 15.012 s [15.012 s, 15.012 s] -645.0 ms (-4.1%)
iast 18.806 s [18.806 s, 18.806 s] 3.149 s (20.1%)
iast_GLOBAL 18.04 s [18.04 s, 18.04 s] 2.383 s (15.2%)
profiling 15.314 s [15.314 s, 15.314 s] -343.0 ms (-2.2%)
tracing 14.984 s [14.984 s, 14.984 s] -673.0 ms (-4.3%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.547 s [15.547 s, 15.547 s] -
appsec 14.941 s [14.941 s, 14.941 s] -606.0 ms (-3.9%)
iast 18.376 s [18.376 s, 18.376 s] 2.829 s (18.2%)
iast_GLOBAL 18.208 s [18.208 s, 18.208 s] 2.661 s (17.1%)
profiling 14.76 s [14.76 s, 14.76 s] -787.0 ms (-5.1%)
tracing 15.204 s [15.204 s, 15.204 s] -343.0 ms (-2.2%)
Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.62.0-SNAPSHOT~f2a32a7836, baseline=1.62.0-SNAPSHOT~9f89a0b26c
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.485 ms) : 1473, 1497
.   : milestone, 1485,
appsec (3.86 ms) : 3637, 4083
.   : milestone, 3860,
iast (2.275 ms) : 2205, 2344
.   : milestone, 2275,
iast_GLOBAL (2.323 ms) : 2253, 2394
.   : milestone, 2323,
profiling (2.112 ms) : 2056, 2168
.   : milestone, 2112,
tracing (2.096 ms) : 2041, 2150
.   : milestone, 2096,
section candidate
no_agent (1.485 ms) : 1473, 1497
.   : milestone, 1485,
appsec (3.829 ms) : 3607, 4051
.   : milestone, 3829,
iast (2.264 ms) : 2194, 2333
.   : milestone, 2264,
iast_GLOBAL (2.313 ms) : 2243, 2382
.   : milestone, 2313,
profiling (2.105 ms) : 2049, 2160
.   : milestone, 2105,
tracing (2.073 ms) : 2019, 2127
.   : milestone, 2073,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.485 ms [1.473 ms, 1.497 ms] -
appsec 3.86 ms [3.637 ms, 4.083 ms] 2.375 ms (159.9%)
iast 2.275 ms [2.205 ms, 2.344 ms] 789.533 µs (53.2%)
iast_GLOBAL 2.323 ms [2.253 ms, 2.394 ms] 838.371 µs (56.5%)
profiling 2.112 ms [2.056 ms, 2.168 ms] 626.746 µs (42.2%)
tracing 2.096 ms [2.041 ms, 2.15 ms] 610.487 µs (41.1%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.485 ms [1.473 ms, 1.497 ms] -
appsec 3.829 ms [3.607 ms, 4.051 ms] 2.344 ms (157.8%)
iast 2.264 ms [2.194 ms, 2.333 ms] 778.668 µs (52.4%)
iast_GLOBAL 2.313 ms [2.243 ms, 2.382 ms] 827.805 µs (55.7%)
profiling 2.105 ms [2.049 ms, 2.16 ms] 619.619 µs (41.7%)
tracing 2.073 ms [2.019 ms, 2.127 ms] 587.785 µs (39.6%)

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Apr 13, 2026

Kafka / consumer-benchmark

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master pwolski/kafka-span-link-tags
git_commit_date 1776110723 1776115731
git_commit_sha 9f89a0b f2a32a7
See matching parameters
Baseline Candidate
ci_job_date 1776116784 1776116784
ci_job_id 1591723033 1591723033
ci_pipeline_id 107484593 107484593
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
jdkVersion 11.0.25 11.0.25
jmhVersion 1.36 1.36
jvm /usr/lib/jvm/java-11-openjdk-amd64/bin/java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
jvmArgs -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/go/src/github.com/DataDog/apm-reliability/dd-trace-java/platform/src/consumer-benchmark/build/tmp/jmh -Duser.country=US -Duser.language=en -Duser.variant -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/go/src/github.com/DataDog/apm-reliability/dd-trace-java/platform/src/consumer-benchmark/build/tmp/jmh -Duser.country=US -Duser.language=en -Duser.variant
vmName OpenJDK 64-Bit Server VM OpenJDK 64-Bit Server VM
vmVersion 11.0.25+9-post-Ubuntu-1ubuntu122.04 11.0.25+9-post-Ubuntu-1ubuntu122.04

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean throughput
scenario:not-instrumented/KafkaConsumerBenchmark.benchConsume same
scenario:only-tracing-dsm-disabled-benchmarks/KafkaConsumerBenchmark.benchConsume same
scenario:only-tracing-dsm-enabled-benchmarks/KafkaConsumerBenchmark.benchConsume same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant