Skip to content

Reduce verbosity of StatsD connection errors#10618

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomasterfrom
bbujon/jffi-log-level
Mar 11, 2026
Merged

Reduce verbosity of StatsD connection errors#10618
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomasterfrom
bbujon/jffi-log-level

Conversation

@PerfectSlayer
Copy link
Copy Markdown
Contributor

What Does This Do

This PR reduces verbosity of StatsD connection error.
It keeps full details / stack trace in debug logs.

Motivation

Using read-only file system, users get the following log message which is quite verbose and scary:

[dd.trace 2026-02-13 13:42:08:766 -0500] [dd-task-scheduler] ERROR datadog.metrics.impl.statsd.DDAgentStatsDConnection - Unable to create StatsD client - /var/run/datadog/dsd.socket - Will not retry
java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider
at jnr.ffi.provider.InvalidRuntime.newLoadError(InvalidRuntime.java:102)
at jnr.ffi.provider.InvalidRuntime.findType(InvalidRuntime.java:43)
at jnr.ffi.Struct$NumberField.<init>(Struct.java:978)
at jnr.ffi.Struct$Unsigned16.<init>(Struct.java:1346)
at jnr.unixsocket.SockAddrUnix$DefaultSockAddrUnix.<init>(SockAddrUnix.java:209)
at jnr.unixsocket.SockAddrUnix.create(SockAddrUnix.java:174)
at jnr.unixsocket.UnixSocketAddress.<init>(UnixSocketAddress.java:53)
at com.timgroup.statsd.NonBlockingStatsDClientBuilder$1.call(NonBlockingStatsDClientBuilder.java:332)
at com.timgroup.statsd.NonBlockingStatsDClientBuilder$1.call(NonBlockingStatsDClientBuilder.java:330)
at com.timgroup.statsd.NonBlockingStatsDClientBuilder.staticAddressResolution(NonBlockingStatsDClientBuilder.java:357)
at com.timgroup.statsd.NonBlockingStatsDClientBuilder.staticAddress(NonBlockingStatsDClientBuilder.java:387)
at com.timgroup.statsd.NonBlockingStatsDClientBuilder.getAddressLookup(NonBlockingStatsDClientBuilder.java:267)
at com.timgroup.statsd.NonBlockingStatsDClientBuilder.resolve(NonBlockingStatsDClientBuilder.java:239)
at com.timgroup.statsd.NonBlockingStatsDClientBuilder.build(NonBlockingStatsDClientBuilder.java:211)
at datadog.metrics.impl.statsd.DDAgentStatsDConnection.doConnect(DDAgentStatsDConnection.java:161)
at datadog.metrics.impl.statsd.DDAgentStatsDConnection.access$000(DDAgentStatsDConnection.java:23)
at datadog.metrics.impl.statsd.DDAgentStatsDConnection$ConnectTask.run(DDAgentStatsDConnection.java:257)
at datadog.metrics.impl.statsd.DDAgentStatsDConnection$ConnectTask.run(DDAgentStatsDConnection.java:251)
at datadog.trace.util.AgentTaskScheduler$PeriodicTask.run(AgentTaskScheduler.java:342)
at datadog.trace.util.AgentTaskScheduler$Worker.run(AgentTaskScheduler.java:294)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.UnsatisfiedLinkError: could not get native definition for type `POINTER`, original error message follows: java.io.IOException: Unable to write jffi binary stub to `/tmp`. Set `TMPDIR` or Java property `java.io.tmpdir` to a read/write path that is not mounted "noexec".

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

Note: Once your PR is ready to merge, add it to the merge queue by commenting /merge. /merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

@PerfectSlayer PerfectSlayer added the type: enhancement Enhancements and improvements label Feb 18, 2026
@PerfectSlayer PerfectSlayer requested a review from a team as a code owner February 18, 2026 07:57
@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Feb 18, 2026

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master bbujon/jffi-log-level
git_commit_date 1772444727 1772446627
git_commit_sha 68b7b69 3c80943
release_version 1.60.0-SNAPSHOT~68b7b69797 1.60.0-SNAPSHOT~3c80943f55
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1772448303 1772448303
ci_job_id 1466249640 1466249640
ci_pipeline_id 99708275 99708275
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-krj304dq 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-krj304dq 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.60.0-SNAPSHOT~3c80943f55, baseline=1.60.0-SNAPSHOT~68b7b69797

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.062 s) : 0, 1062146
Total [baseline] (8.719 s) : 0, 8718724
Agent [candidate] (1.067 s) : 0, 1066505
Total [candidate] (8.757 s) : 0, 8757040
section iast
Agent [baseline] (1.23 s) : 0, 1229710
Total [baseline] (9.329 s) : 0, 9328710
Agent [candidate] (1.238 s) : 0, 1238015
Total [candidate] (9.436 s) : 0, 9435609
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.062 s -
Agent iast 1.23 s 167.564 ms (15.8%)
Total tracing 8.719 s -
Total iast 9.329 s 609.987 ms (7.0%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.067 s -
Agent iast 1.238 s 171.51 ms (16.1%)
Total tracing 8.757 s -
Total iast 9.436 s 678.568 ms (7.7%)
gantt
    title insecure-bank - break down per module: candidate=1.60.0-SNAPSHOT~3c80943f55, baseline=1.60.0-SNAPSHOT~68b7b69797

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.186 ms) : 0, 1186
crashtracking [candidate] (1.196 ms) : 0, 1196
BytebuddyAgent [baseline] (626.45 ms) : 0, 626450
BytebuddyAgent [candidate] (628.233 ms) : 0, 628233
AgentMeter [baseline] (28.943 ms) : 0, 28943
AgentMeter [candidate] (29.323 ms) : 0, 29323
GlobalTracer [baseline] (256.794 ms) : 0, 256794
GlobalTracer [candidate] (259.393 ms) : 0, 259393
AppSec [baseline] (32.901 ms) : 0, 32901
AppSec [candidate] (33.224 ms) : 0, 33224
Debugger [baseline] (64.0 ms) : 0, 64000
Debugger [candidate] (62.193 ms) : 0, 62193
Remote Config [baseline] (598.398 µs) : 0, 598
Remote Config [candidate] (623.749 µs) : 0, 624
Telemetry [baseline] (9.769 ms) : 0, 9769
Telemetry [candidate] (12.321 ms) : 0, 12321
Flare Poller [baseline] (5.415 ms) : 0, 5415
Flare Poller [candidate] (3.837 ms) : 0, 3837
section iast
crashtracking [baseline] (1.184 ms) : 0, 1184
crashtracking [candidate] (1.192 ms) : 0, 1192
BytebuddyAgent [baseline] (795.125 ms) : 0, 795125
BytebuddyAgent [candidate] (800.971 ms) : 0, 800971
AgentMeter [baseline] (11.304 ms) : 0, 11304
AgentMeter [candidate] (11.558 ms) : 0, 11558
GlobalTracer [baseline] (247.098 ms) : 0, 247098
GlobalTracer [candidate] (248.568 ms) : 0, 248568
AppSec [baseline] (31.387 ms) : 0, 31387
AppSec [candidate] (32.286 ms) : 0, 32286
Debugger [baseline] (68.063 ms) : 0, 68063
Debugger [candidate] (67.241 ms) : 0, 67241
Remote Config [baseline] (539.438 µs) : 0, 539
Remote Config [candidate] (564.562 µs) : 0, 565
Telemetry [baseline] (8.581 ms) : 0, 8581
Telemetry [candidate] (8.752 ms) : 0, 8752
Flare Poller [baseline] (3.433 ms) : 0, 3433
Flare Poller [candidate] (3.54 ms) : 0, 3540
IAST [baseline] (27.047 ms) : 0, 27047
IAST [candidate] (27.203 ms) : 0, 27203
Loading
Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.60.0-SNAPSHOT~3c80943f55, baseline=1.60.0-SNAPSHOT~68b7b69797

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.08 s) : 0, 1079879
Total [baseline] (10.924 s) : 0, 10924194
Agent [candidate] (1.066 s) : 0, 1066204
Total [candidate] (10.895 s) : 0, 10894968
section appsec
Agent [baseline] (1.236 s) : 0, 1235579
Total [baseline] (11.034 s) : 0, 11034406
Agent [candidate] (1.247 s) : 0, 1246727
Total [candidate] (11.197 s) : 0, 11197102
section iast
Agent [baseline] (1.25 s) : 0, 1250212
Total [baseline] (11.26 s) : 0, 11260145
Agent [candidate] (1.233 s) : 0, 1232897
Total [candidate] (11.25 s) : 0, 11249851
section profiling
Agent [baseline] (1.192 s) : 0, 1191984
Total [baseline] (10.917 s) : 0, 10916970
Agent [candidate] (1.192 s) : 0, 1191883
Total [candidate] (10.938 s) : 0, 10938341
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.08 s -
Agent appsec 1.236 s 155.7 ms (14.4%)
Agent iast 1.25 s 170.333 ms (15.8%)
Agent profiling 1.192 s 112.105 ms (10.4%)
Total tracing 10.924 s -
Total appsec 11.034 s 110.212 ms (1.0%)
Total iast 11.26 s 335.951 ms (3.1%)
Total profiling 10.917 s -7.224 ms (-0.1%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.066 s -
Agent appsec 1.247 s 180.523 ms (16.9%)
Agent iast 1.233 s 166.693 ms (15.6%)
Agent profiling 1.192 s 125.68 ms (11.8%)
Total tracing 10.895 s -
Total appsec 11.197 s 302.134 ms (2.8%)
Total iast 11.25 s 354.883 ms (3.3%)
Total profiling 10.938 s 43.374 ms (0.4%)
gantt
    title petclinic - break down per module: candidate=1.60.0-SNAPSHOT~3c80943f55, baseline=1.60.0-SNAPSHOT~68b7b69797

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.192 ms) : 0, 1192
crashtracking [candidate] (1.2 ms) : 0, 1200
BytebuddyAgent [baseline] (636.7 ms) : 0, 636700
BytebuddyAgent [candidate] (628.491 ms) : 0, 628491
AgentMeter [baseline] (29.587 ms) : 0, 29587
AgentMeter [candidate] (29.1 ms) : 0, 29100
GlobalTracer [baseline] (260.689 ms) : 0, 260689
GlobalTracer [candidate] (257.477 ms) : 0, 257477
AppSec [baseline] (33.653 ms) : 0, 33653
AppSec [candidate] (32.836 ms) : 0, 32836
Debugger [baseline] (63.124 ms) : 0, 63124
Debugger [candidate] (63.573 ms) : 0, 63573
Remote Config [baseline] (630.315 µs) : 0, 630
Remote Config [candidate] (616.56 µs) : 0, 617
Telemetry [baseline] (12.548 ms) : 0, 12548
Telemetry [candidate] (10.679 ms) : 0, 10679
Flare Poller [baseline] (5.53 ms) : 0, 5530
Flare Poller [candidate] (6.116 ms) : 0, 6116
section appsec
crashtracking [baseline] (1.196 ms) : 0, 1196
crashtracking [candidate] (1.222 ms) : 0, 1222
BytebuddyAgent [baseline] (655.499 ms) : 0, 655499
BytebuddyAgent [candidate] (662.82 ms) : 0, 662820
AgentMeter [baseline] (11.99 ms) : 0, 11990
AgentMeter [candidate] (12.108 ms) : 0, 12108
GlobalTracer [baseline] (258.008 ms) : 0, 258008
GlobalTracer [candidate] (259.644 ms) : 0, 259644
AppSec [baseline] (167.516 ms) : 0, 167516
AppSec [candidate] (168.184 ms) : 0, 168184
Debugger [baseline] (66.402 ms) : 0, 66402
Debugger [candidate] (67.067 ms) : 0, 67067
Remote Config [baseline] (685.932 µs) : 0, 686
Remote Config [candidate] (682.797 µs) : 0, 683
Telemetry [baseline] (9.353 ms) : 0, 9353
Telemetry [candidate] (9.536 ms) : 0, 9536
Flare Poller [baseline] (3.662 ms) : 0, 3662
Flare Poller [candidate] (3.668 ms) : 0, 3668
IAST [baseline] (25.276 ms) : 0, 25276
IAST [candidate] (25.539 ms) : 0, 25539
section iast
crashtracking [baseline] (1.21 ms) : 0, 1210
crashtracking [candidate] (1.178 ms) : 0, 1178
BytebuddyAgent [baseline] (808.396 ms) : 0, 808396
BytebuddyAgent [candidate] (795.939 ms) : 0, 795939
AgentMeter [baseline] (11.831 ms) : 0, 11831
AgentMeter [candidate] (11.315 ms) : 0, 11315
GlobalTracer [baseline] (250.253 ms) : 0, 250253
GlobalTracer [candidate] (247.579 ms) : 0, 247579
AppSec [baseline] (32.934 ms) : 0, 32934
AppSec [candidate] (33.489 ms) : 0, 33489
Debugger [baseline] (68.95 ms) : 0, 68950
Debugger [candidate] (67.528 ms) : 0, 67528
Remote Config [baseline] (545.476 µs) : 0, 545
Remote Config [candidate] (544.113 µs) : 0, 544
Telemetry [baseline] (8.701 ms) : 0, 8701
Telemetry [candidate] (8.769 ms) : 0, 8769
Flare Poller [baseline] (3.51 ms) : 0, 3510
Flare Poller [candidate] (3.538 ms) : 0, 3538
IAST [baseline] (27.651 ms) : 0, 27651
IAST [candidate] (27.078 ms) : 0, 27078
section profiling
crashtracking [baseline] (1.169 ms) : 0, 1169
crashtracking [candidate] (1.166 ms) : 0, 1166
BytebuddyAgent [baseline] (682.81 ms) : 0, 682810
BytebuddyAgent [candidate] (682.775 ms) : 0, 682775
AgentMeter [baseline] (8.561 ms) : 0, 8561
AgentMeter [candidate] (8.551 ms) : 0, 8551
GlobalTracer [baseline] (216.128 ms) : 0, 216128
GlobalTracer [candidate] (215.965 ms) : 0, 215965
AppSec [baseline] (32.794 ms) : 0, 32794
AppSec [candidate] (32.61 ms) : 0, 32610
Debugger [baseline] (67.128 ms) : 0, 67128
Debugger [candidate] (67.536 ms) : 0, 67536
Remote Config [baseline] (634.476 µs) : 0, 634
Remote Config [candidate] (622.598 µs) : 0, 623
Telemetry [baseline] (8.917 ms) : 0, 8917
Telemetry [candidate] (8.979 ms) : 0, 8979
Flare Poller [baseline] (3.729 ms) : 0, 3729
Flare Poller [candidate] (3.802 ms) : 0, 3802
ProfilingAgent [baseline] (99.377 ms) : 0, 99377
ProfilingAgent [candidate] (98.991 ms) : 0, 98991
Profiling [baseline] (99.953 ms) : 0, 99953
Profiling [candidate] (99.568 ms) : 0, 99568
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master bbujon/jffi-log-level
git_commit_date 1772444727 1772446627
git_commit_sha 68b7b69 3c80943
release_version 1.60.0-SNAPSHOT~68b7b69797 1.60.0-SNAPSHOT~3c80943f55
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1772448795 1772448795
ci_job_id 1466249642 1466249642
ci_pipeline_id 99708275 99708275
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-fs94zrrr 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-fs94zrrr 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 4 performance improvements and 0 performance regressions! Performance is the same for 15 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_FULL:high_load better
[-426.203µs; -240.894µs] or [-8.187%; -4.627%]
unsure
[-825.728µs; -60.985µs] or [-6.761%; -0.499%]
unstable
[-50.496op/s; +135.433op/s] or [-6.392%; +17.143%]
4.872ms 11.769ms 832.500op/s 5.206ms 12.212ms 790.031op/s
scenario:load:petclinic:code_origins:high_load better
[-1132.491µs; -382.804µs] or [-6.415%; -2.168%]
same
[-1170.649µs; +129.336µs] or [-4.055%; +0.448%]
unstable
[-20.754op/s; +32.754op/s] or [-7.924%; +12.506%]
16.897ms 28.348ms 267.906op/s 17.655ms 28.868ms 261.906op/s
scenario:load:petclinic:tracing:high_load better
[-1.541ms; -0.547ms] or [-8.463%; -3.003%]
same
[-1356.983µs; +294.208µs] or [-4.625%; +1.003%]
unstable
[-17.092op/s; +36.405op/s] or [-6.710%; +14.292%]
17.166ms 28.810ms 264.375op/s 18.210ms 29.341ms 254.719op/s
scenario:load:petclinic:no_agent:high_load better
[-2.559ms; -0.897ms] or [-13.521%; -4.743%]
unstable
[-3.986ms; -0.599ms] or [-12.695%; -1.907%]
unstable
[-9.182op/s; +45.307op/s] or [-3.766%; +18.583%]
17.195ms 29.108ms 261.875op/s 18.923ms 31.400ms 243.812op/s
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.60.0-SNAPSHOT~3c80943f55, baseline=1.60.0-SNAPSHOT~68b7b69797
    dateFormat X
    axisFormat %s
section baseline
no_agent (19.146 ms) : 18946, 19346
.   : milestone, 19146,
appsec (18.833 ms) : 18643, 19023
.   : milestone, 18833,
code_origins (17.815 ms) : 17637, 17994
.   : milestone, 17815,
iast (17.696 ms) : 17521, 17872
.   : milestone, 17696,
profiling (19.493 ms) : 19294, 19692
.   : milestone, 19493,
tracing (18.319 ms) : 18135, 18504
.   : milestone, 18319,
section candidate
no_agent (17.818 ms) : 17637, 17999
.   : milestone, 17818,
appsec (18.634 ms) : 18444, 18825
.   : milestone, 18634,
code_origins (17.412 ms) : 17239, 17585
.   : milestone, 17412,
iast (17.576 ms) : 17402, 17750
.   : milestone, 17576,
profiling (19.563 ms) : 19365, 19762
.   : milestone, 19563,
tracing (17.65 ms) : 17472, 17827
.   : milestone, 17650,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 19.146 ms [18.946 ms, 19.346 ms] -
appsec 18.833 ms [18.643 ms, 19.023 ms] -313.402 µs (-1.6%)
code_origins 17.815 ms [17.637 ms, 17.994 ms] -1.331 ms (-7.0%)
iast 17.696 ms [17.521 ms, 17.872 ms] -1.45 ms (-7.6%)
profiling 19.493 ms [19.294 ms, 19.692 ms] 346.987 µs (1.8%)
tracing 18.319 ms [18.135 ms, 18.504 ms] -826.645 µs (-4.3%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 17.818 ms [17.637 ms, 17.999 ms] -
appsec 18.634 ms [18.444 ms, 18.825 ms] 816.211 µs (4.6%)
code_origins 17.412 ms [17.239 ms, 17.585 ms] -405.979 µs (-2.3%)
iast 17.576 ms [17.402 ms, 17.75 ms] -242.005 µs (-1.4%)
profiling 19.563 ms [19.365 ms, 19.762 ms] 1.745 ms (9.8%)
tracing 17.65 ms [17.472 ms, 17.827 ms] -168.558 µs (-0.9%)
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.60.0-SNAPSHOT~3c80943f55, baseline=1.60.0-SNAPSHOT~68b7b69797
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.188 ms) : 1177, 1200
.   : milestone, 1188,
iast (3.156 ms) : 3114, 3198
.   : milestone, 3156,
iast_FULL (5.852 ms) : 5795, 5910
.   : milestone, 5852,
iast_GLOBAL (3.539 ms) : 3479, 3599
.   : milestone, 3539,
profiling (2.05 ms) : 2032, 2069
.   : milestone, 2050,
tracing (1.758 ms) : 1744, 1772
.   : milestone, 1758,
section candidate
no_agent (1.184 ms) : 1172, 1195
.   : milestone, 1184,
iast (3.156 ms) : 3115, 3197
.   : milestone, 3156,
iast_FULL (5.551 ms) : 5496, 5606
.   : milestone, 5551,
iast_GLOBAL (3.607 ms) : 3545, 3668
.   : milestone, 3607,
profiling (2.114 ms) : 2095, 2133
.   : milestone, 2114,
tracing (1.823 ms) : 1807, 1838
.   : milestone, 1823,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.188 ms [1.177 ms, 1.2 ms] -
iast 3.156 ms [3.114 ms, 3.198 ms] 1.967 ms (165.5%)
iast_FULL 5.852 ms [5.795 ms, 5.91 ms] 4.664 ms (392.4%)
iast_GLOBAL 3.539 ms [3.479 ms, 3.599 ms] 2.351 ms (197.8%)
profiling 2.05 ms [2.032 ms, 2.069 ms] 861.637 µs (72.5%)
tracing 1.758 ms [1.744 ms, 1.772 ms] 569.285 µs (47.9%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.184 ms [1.172 ms, 1.195 ms] -
iast 3.156 ms [3.115 ms, 3.197 ms] 1.972 ms (166.6%)
iast_FULL 5.551 ms [5.496 ms, 5.606 ms] 4.367 ms (368.9%)
iast_GLOBAL 3.607 ms [3.545 ms, 3.668 ms] 2.423 ms (204.7%)
profiling 2.114 ms [2.095 ms, 2.133 ms] 930.243 µs (78.6%)
tracing 1.823 ms [1.807 ms, 1.838 ms] 638.933 µs (54.0%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master bbujon/jffi-log-level
git_commit_date 1772444727 1772446627
git_commit_sha 68b7b69 3c80943
release_version 1.60.0-SNAPSHOT~68b7b69797 1.60.0-SNAPSHOT~3c80943f55
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1772448648 1772448648
ci_job_id 1466249645 1466249645
ci_pipeline_id 99708275 99708275
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-1-5fpy8v8z 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-1-5fpy8v8z 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 tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.60.0-SNAPSHOT~3c80943f55, baseline=1.60.0-SNAPSHOT~68b7b69797
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.47 ms) : 1458, 1481
.   : milestone, 1470,
appsec (2.506 ms) : 2451, 2560
.   : milestone, 2506,
iast (2.237 ms) : 2168, 2305
.   : milestone, 2237,
iast_GLOBAL (2.29 ms) : 2221, 2359
.   : milestone, 2290,
profiling (2.111 ms) : 2055, 2168
.   : milestone, 2111,
tracing (2.072 ms) : 2019, 2125
.   : milestone, 2072,
section candidate
no_agent (1.47 ms) : 1459, 1482
.   : milestone, 1470,
appsec (3.725 ms) : 3510, 3941
.   : milestone, 3725,
iast (2.242 ms) : 2174, 2311
.   : milestone, 2242,
iast_GLOBAL (2.293 ms) : 2224, 2363
.   : milestone, 2293,
profiling (2.088 ms) : 2032, 2144
.   : milestone, 2088,
tracing (2.046 ms) : 1993, 2099
.   : milestone, 2046,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.47 ms [1.458 ms, 1.481 ms] -
appsec 2.506 ms [2.451 ms, 2.56 ms] 1.036 ms (70.5%)
iast 2.237 ms [2.168 ms, 2.305 ms] 766.877 µs (52.2%)
iast_GLOBAL 2.29 ms [2.221 ms, 2.359 ms] 820.056 µs (55.8%)
profiling 2.111 ms [2.055 ms, 2.168 ms] 641.412 µs (43.6%)
tracing 2.072 ms [2.019 ms, 2.125 ms] 602.095 µs (41.0%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.47 ms [1.459 ms, 1.482 ms] -
appsec 3.725 ms [3.51 ms, 3.941 ms] 2.255 ms (153.4%)
iast 2.242 ms [2.174 ms, 2.311 ms] 772.107 µs (52.5%)
iast_GLOBAL 2.293 ms [2.224 ms, 2.363 ms] 823.219 µs (56.0%)
profiling 2.088 ms [2.032 ms, 2.144 ms] 617.738 µs (42.0%)
tracing 2.046 ms [1.993 ms, 2.099 ms] 575.829 µs (39.2%)
Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.60.0-SNAPSHOT~3c80943f55, baseline=1.60.0-SNAPSHOT~68b7b69797
    dateFormat X
    axisFormat %s
section baseline
no_agent (14.938 s) : 14938000, 14938000
.   : milestone, 14938000,
appsec (15.048 s) : 15048000, 15048000
.   : milestone, 15048000,
iast (17.99 s) : 17990000, 17990000
.   : milestone, 17990000,
iast_GLOBAL (17.739 s) : 17739000, 17739000
.   : milestone, 17739000,
profiling (14.748 s) : 14748000, 14748000
.   : milestone, 14748000,
tracing (14.76 s) : 14760000, 14760000
.   : milestone, 14760000,
section candidate
no_agent (15.015 s) : 15015000, 15015000
.   : milestone, 15015000,
appsec (15.085 s) : 15085000, 15085000
.   : milestone, 15085000,
iast (18.115 s) : 18115000, 18115000
.   : milestone, 18115000,
iast_GLOBAL (17.807 s) : 17807000, 17807000
.   : milestone, 17807000,
profiling (14.849 s) : 14849000, 14849000
.   : milestone, 14849000,
tracing (14.688 s) : 14688000, 14688000
.   : milestone, 14688000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 14.938 s [14.938 s, 14.938 s] -
appsec 15.048 s [15.048 s, 15.048 s] 110.0 ms (0.7%)
iast 17.99 s [17.99 s, 17.99 s] 3.052 s (20.4%)
iast_GLOBAL 17.739 s [17.739 s, 17.739 s] 2.801 s (18.8%)
profiling 14.748 s [14.748 s, 14.748 s] -190.0 ms (-1.3%)
tracing 14.76 s [14.76 s, 14.76 s] -178.0 ms (-1.2%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.015 s [15.015 s, 15.015 s] -
appsec 15.085 s [15.085 s, 15.085 s] 70.0 ms (0.5%)
iast 18.115 s [18.115 s, 18.115 s] 3.1 s (20.6%)
iast_GLOBAL 17.807 s [17.807 s, 17.807 s] 2.792 s (18.6%)
profiling 14.849 s [14.849 s, 14.849 s] -166.0 ms (-1.1%)
tracing 14.688 s [14.688 s, 14.688 s] -327.0 ms (-2.2%)

} else {
// Only report the top and root cause message
Throwable rootCause = t;
while (rootCause.getCause() != null) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's rare, but potentially .getCause() can lead to a cycle - so consider adding a numerical limit to this iteration, like in https://github.com/DataDog/dd-trace-java/blob/master/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/util/ExceptionHelper.java#L71

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, thanks! 🙏
Just pushed a fix

@PerfectSlayer PerfectSlayer force-pushed the bbujon/jffi-log-level branch from 1478d04 to 3c80943 Compare March 2, 2026 10:17
Copy link
Copy Markdown
Contributor

@sarahchen6 sarahchen6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PerfectSlayer
Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 bot commented Mar 5, 2026

View all feedbacks in Devflow UI.

2026-03-05 10:30:01 UTC ℹ️ Start processing command /merge


2026-03-05 10:30:06 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-03-05 11:15:49 UTCMergeQueue: The build pipeline contains failing jobs for this merge request

Build pipeline has failing jobs for 3c63c4f:

⚠️ Do NOT retry failed jobs directly (why?).

What to do next?

  • Investigate the failures and when ready, re-add your pull request to the queue!
  • If your PR checks are green, try to rebase/merge. It might be because the CI run is a bit old.
  • Any question, go check the FAQ.
Details

Since those jobs are not marked as being allowed to fail, the pipeline will most likely fail.
Therefore, and to allow other builds to be processed, this merge request has been rejected and the pipeline got canceled.

Comment on lines +177 to +192
if (log.isDebugEnabled()) {
// Display full stack traces on debug logs
log.warn("Unable to create StatsD client - {} - Will not retry", statsDAddress(), t);
} else {
Throwable rootCause = t;
int i = 100; // arbitrary limit to avoid infinite loops with cycling causes
do {
rootCause = rootCause.getCause();
i--;
} while (rootCause.getCause() != null && i > 0);
log.warn(
"Unable to create StatsD client - {} - Will not retry: {}, {}",
statsDAddress(),
t.getMessage(),
rootCause.getMessage());
}
Copy link
Copy Markdown
Contributor

@bric3 bric3 Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: I believe this could be a useful logging feature.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I will capture it in the doc

@PerfectSlayer
Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 bot commented Mar 11, 2026

View all feedbacks in Devflow UI.

2026-03-11 10:24:15 UTC ℹ️ Start processing command /merge


2026-03-11 10:24:19 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-03-11 12:04:21 UTC ℹ️ MergeQueue: Readding this merge request to the queue because another merge request processed with yours failed. No action is needed from your side.


2026-03-11 13:02:50 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot merged commit 3ee21aa into master Mar 11, 2026
570 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot deleted the bbujon/jffi-log-level branch March 11, 2026 13:02
@github-actions github-actions bot added this to the 1.61.0 milestone Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: metrics Metrics type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants