Skip to content

Conversation

@ygree
Copy link
Contributor

@ygree ygree commented Sep 4, 2025

What Does This Do

#9459 follow up

Motivation

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@ygree ygree added the type: bug Bug report and fix label Sep 4, 2025
@ygree ygree requested review from a team as code owners September 4, 2025 17:57
@ygree ygree added the comp: telemetry Telemetry label Sep 4, 2025
@ygree ygree requested review from a team as code owners September 4, 2025 17:57
@ygree ygree requested review from bric3, daniel-mohedano, jandro996, jpbempel, mcculls and robertpi and removed request for a team September 4, 2025 17:57
@pr-commenter
Copy link

pr-commenter bot commented Sep 4, 2025

Debugger benchmarks

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
ci_job_date 1758050519 1758050864
end_time 2025-09-16T19:23:20 2025-09-16T19:29:05
git_branch master ygree/error-logs-remediation-2
git_commit_sha 2cfe50a 1038344
start_time 2025-09-16T19:22:00 2025-09-16T19:27:45
See matching parameters
Baseline Candidate
ci_job_id 1132423104 1132423104
ci_pipeline_id 76665092 76665092
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
git_commit_date 1758045005 1758045005

Summary

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

See unchanged results
scenario Δ mean agg_http_req_duration_min Δ mean agg_http_req_duration_p50 Δ mean agg_http_req_duration_p75 Δ mean agg_http_req_duration_p99 Δ mean throughput
scenario:noprobe unstable
[-15.274µs; +33.589µs] or [-5.537%; +12.176%]
unstable
[-24.125µs; +44.394µs] or [-7.666%; +14.107%]
unstable
[-34.077µs; +56.572µs] or [-10.363%; +17.204%]
unstable
[-195.089µs; +20.330µs] or [-18.156%; +1.892%]
same
scenario:basic unsure
[+0.911µs; +7.599µs] or [+0.364%; +3.037%]
same same unstable
[-235.583µs; -42.908µs] or [-27.562%; -5.020%]
same
scenario:loop unsure
[+0.489µs; +6.990µs] or [+0.006%; +0.079%]
same same same same
Request duration reports for reports
gantt
    title reports - request duration [CI 0.99] : candidate=None, baseline=None
    dateFormat X
    axisFormat %s
section baseline
noprobe (314.707 µs) : 290, 339
.   : milestone, 315,
basic (277.714 µs) : 272, 284
.   : milestone, 278,
loop (8.974 ms) : 8969, 8979
.   : milestone, 8974,
section candidate
noprobe (324.842 µs) : 286, 364
.   : milestone, 325,
basic (282.771 µs) : 276, 290
.   : milestone, 283,
loop (8.983 ms) : 8954, 9013
.   : milestone, 8983,
Loading
  • baseline results
Scenario Request median duration [CI 0.99]
noprobe 314.707 µs [290.276 µs, 339.138 µs]
basic 277.714 µs [271.652 µs, 283.775 µs]
loop 8.974 ms [8.969 ms, 8.979 ms]
  • candidate results
Scenario Request median duration [CI 0.99]
noprobe 324.842 µs [285.72 µs, 363.964 µs]
basic 282.771 µs [275.971 µs, 289.57 µs]
loop 8.983 ms [8.954 ms, 9.013 ms]

@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Sep 4, 2025

🎯 Code Coverage
Patch Coverage: 100.00%
Total Coverage: 59.75% (+0.09%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1038344 | Docs | Was this helpful? Give us feedback!

@pr-commenter
Copy link

pr-commenter bot commented Sep 4, 2025

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master ygree/error-logs-remediation-2
git_commit_date 1758043238 1758045005
git_commit_sha 2cfe50a 1038344
release_version 1.54.0-SNAPSHOT~2cfe50a636 1.54.0-SNAPSHOT~103834421d
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1758051707 1758051707
ci_job_id 1132423097 1132423097
ci_pipeline_id 76665092 76665092
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-lz3pkmr7 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-lz3pkmr7 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 50 metrics, 9 unstable metrics.

Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.54.0-SNAPSHOT~103834421d, baseline=1.54.0-SNAPSHOT~2cfe50a636

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.066 s) : 0, 1066416
Total [baseline] (8.69 s) : 0, 8689824
Agent [candidate] (1.07 s) : 0, 1069584
Total [candidate] (8.621 s) : 0, 8621082
section iast
Agent [baseline] (1.191 s) : 0, 1191266
Total [baseline] (9.303 s) : 0, 9303239
Agent [candidate] (1.19 s) : 0, 1190098
Total [candidate] (9.282 s) : 0, 9281737
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.066 s -
Agent iast 1.191 s 124.85 ms (11.7%)
Total tracing 8.69 s -
Total iast 9.303 s 613.415 ms (7.1%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.07 s -
Agent iast 1.19 s 120.514 ms (11.3%)
Total tracing 8.621 s -
Total iast 9.282 s 660.655 ms (7.7%)
gantt
    title insecure-bank - break down per module: candidate=1.54.0-SNAPSHOT~103834421d, baseline=1.54.0-SNAPSHOT~2cfe50a636

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.464 ms) : 0, 1464
crashtracking [candidate] (1.473 ms) : 0, 1473
BytebuddyAgent [baseline] (736.832 ms) : 0, 736832
BytebuddyAgent [candidate] (738.331 ms) : 0, 738331
GlobalTracer [baseline] (253.67 ms) : 0, 253670
GlobalTracer [candidate] (254.316 ms) : 0, 254316
AppSec [baseline] (30.762 ms) : 0, 30762
AppSec [candidate] (30.773 ms) : 0, 30773
Debugger [baseline] (6.465 ms) : 0, 6465
Debugger [candidate] (6.443 ms) : 0, 6443
Remote Config [baseline] (706.111 µs) : 0, 706
Remote Config [candidate] (704.231 µs) : 0, 704
Telemetry [baseline] (15.436 ms) : 0, 15436
Telemetry [candidate] (16.445 ms) : 0, 16445
section iast
crashtracking [baseline] (1.475 ms) : 0, 1475
crashtracking [candidate] (1.454 ms) : 0, 1454
BytebuddyAgent [baseline] (853.018 ms) : 0, 853018
BytebuddyAgent [candidate] (851.497 ms) : 0, 851497
GlobalTracer [baseline] (246.514 ms) : 0, 246514
GlobalTracer [candidate] (247.568 ms) : 0, 247568
IAST [baseline] (28.111 ms) : 0, 28111
IAST [candidate] (28.044 ms) : 0, 28044
AppSec [baseline] (26.345 ms) : 0, 26345
AppSec [candidate] (25.718 ms) : 0, 25718
Debugger [baseline] (6.009 ms) : 0, 6009
Debugger [candidate] (6.099 ms) : 0, 6099
Remote Config [baseline] (603.489 µs) : 0, 603
Remote Config [candidate] (600.214 µs) : 0, 600
Telemetry [baseline] (8.183 ms) : 0, 8183
Telemetry [candidate] (8.235 ms) : 0, 8235
Loading
Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.54.0-SNAPSHOT~103834421d, baseline=1.54.0-SNAPSHOT~2cfe50a636

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.062 s) : 0, 1062440
Total [baseline] (10.739 s) : 0, 10738605
Agent [candidate] (1.065 s) : 0, 1065314
Total [candidate] (10.746 s) : 0, 10745772
section appsec
Agent [baseline] (1.239 s) : 0, 1239113
Total [baseline] (11.112 s) : 0, 11111898
Agent [candidate] (1.234 s) : 0, 1234345
Total [candidate] (11.052 s) : 0, 11052333
section iast
Agent [baseline] (1.19 s) : 0, 1190419
Total [baseline] (11.072 s) : 0, 11072487
Agent [candidate] (1.192 s) : 0, 1191878
Total [candidate] (11.028 s) : 0, 11028324
section profiling
Agent [baseline] (1.214 s) : 0, 1214082
Total [baseline] (10.981 s) : 0, 10981468
Agent [candidate] (1.21 s) : 0, 1209769
Total [candidate] (11.182 s) : 0, 11181740
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.062 s -
Agent appsec 1.239 s 176.673 ms (16.6%)
Agent iast 1.19 s 127.979 ms (12.0%)
Agent profiling 1.214 s 151.642 ms (14.3%)
Total tracing 10.739 s -
Total appsec 11.112 s 373.292 ms (3.5%)
Total iast 11.072 s 333.882 ms (3.1%)
Total profiling 10.981 s 242.863 ms (2.3%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.065 s -
Agent appsec 1.234 s 169.031 ms (15.9%)
Agent iast 1.192 s 126.565 ms (11.9%)
Agent profiling 1.21 s 144.455 ms (13.6%)
Total tracing 10.746 s -
Total appsec 11.052 s 306.561 ms (2.9%)
Total iast 11.028 s 282.551 ms (2.6%)
Total profiling 11.182 s 435.967 ms (4.1%)
gantt
    title petclinic - break down per module: candidate=1.54.0-SNAPSHOT~103834421d, baseline=1.54.0-SNAPSHOT~2cfe50a636

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.467 ms) : 0, 1467
crashtracking [candidate] (1.458 ms) : 0, 1458
BytebuddyAgent [baseline] (732.775 ms) : 0, 732775
BytebuddyAgent [candidate] (735.553 ms) : 0, 735553
GlobalTracer [baseline] (252.869 ms) : 0, 252869
GlobalTracer [candidate] (253.193 ms) : 0, 253193
AppSec [baseline] (30.585 ms) : 0, 30585
AppSec [candidate] (30.621 ms) : 0, 30621
Debugger [baseline] (6.396 ms) : 0, 6396
Debugger [candidate] (6.44 ms) : 0, 6440
Remote Config [baseline] (695.488 µs) : 0, 695
Remote Config [candidate] (697.032 µs) : 0, 697
Telemetry [baseline] (16.545 ms) : 0, 16545
Telemetry [candidate] (16.263 ms) : 0, 16263
section appsec
crashtracking [baseline] (1.459 ms) : 0, 1459
crashtracking [candidate] (1.458 ms) : 0, 1458
BytebuddyAgent [baseline] (759.403 ms) : 0, 759403
BytebuddyAgent [candidate] (755.745 ms) : 0, 755745
GlobalTracer [baseline] (246.572 ms) : 0, 246572
GlobalTracer [candidate] (245.806 ms) : 0, 245806
AppSec [baseline] (171.299 ms) : 0, 171299
AppSec [candidate] (171.336 ms) : 0, 171336
Debugger [baseline] (6.022 ms) : 0, 6022
Debugger [candidate] (5.964 ms) : 0, 5964
Remote Config [baseline] (630.617 µs) : 0, 631
Remote Config [candidate] (617.572 µs) : 0, 618
Telemetry [baseline] (8.556 ms) : 0, 8556
Telemetry [candidate] (8.477 ms) : 0, 8477
IAST [baseline] (23.919 ms) : 0, 23919
IAST [candidate] (23.765 ms) : 0, 23765
section iast
crashtracking [baseline] (1.463 ms) : 0, 1463
crashtracking [candidate] (1.452 ms) : 0, 1452
BytebuddyAgent [baseline] (852.415 ms) : 0, 852415
BytebuddyAgent [candidate] (853.678 ms) : 0, 853678
GlobalTracer [baseline] (245.703 ms) : 0, 245703
GlobalTracer [candidate] (246.263 ms) : 0, 246263
AppSec [baseline] (25.321 ms) : 0, 25321
AppSec [candidate] (26.065 ms) : 0, 26065
Debugger [baseline] (6.047 ms) : 0, 6047
Debugger [candidate] (6.033 ms) : 0, 6033
Remote Config [baseline] (602.002 µs) : 0, 602
Remote Config [candidate] (588.472 µs) : 0, 588
Telemetry [baseline] (8.193 ms) : 0, 8193
Telemetry [candidate] (8.136 ms) : 0, 8136
IAST [baseline] (29.687 ms) : 0, 29687
IAST [candidate] (28.703 ms) : 0, 28703
section profiling
ProfilingAgent [baseline] (107.767 ms) : 0, 107767
ProfilingAgent [candidate] (107.29 ms) : 0, 107290
crashtracking [baseline] (1.456 ms) : 0, 1456
crashtracking [candidate] (1.44 ms) : 0, 1440
BytebuddyAgent [baseline] (765.572 ms) : 0, 765572
BytebuddyAgent [candidate] (762.093 ms) : 0, 762093
GlobalTracer [baseline] (233.496 ms) : 0, 233496
GlobalTracer [candidate] (233.487 ms) : 0, 233487
AppSec [baseline] (30.57 ms) : 0, 30570
AppSec [candidate] (30.196 ms) : 0, 30196
Debugger [baseline] (11.241 ms) : 0, 11241
Debugger [candidate] (11.553 ms) : 0, 11553
Remote Config [baseline] (2.342 ms) : 0, 2342
Remote Config [candidate] (1.54 ms) : 0, 1540
Telemetry [baseline] (10.226 ms) : 0, 10226
Telemetry [candidate] (11.064 ms) : 0, 11064
Profiling [baseline] (108.432 ms) : 0, 108432
Profiling [candidate] (107.974 ms) : 0, 107974
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master ygree/error-logs-remediation-2
git_commit_date 1758043238 1758045005
git_commit_sha 2cfe50a 1038344
release_version 1.54.0-SNAPSHOT~2cfe50a636 1.54.0-SNAPSHOT~103834421d
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1758051367 1758051367
ci_job_id 1132423098 1132423098
ci_pipeline_id 76665092 76665092
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-gh7hcmzj 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-gh7hcmzj 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 1 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 12 unstable metrics.

scenario Δ mean http_req_duration Δ mean throughput candidate mean http_req_duration candidate mean throughput baseline mean http_req_duration baseline mean throughput
scenario:load:insecure-bank:iast:high_load better
[-653.112µs; -309.518µs] or [-6.682%; -3.167%]
unstable
[-35.391op/s; +83.766op/s] or [-7.446%; +17.623%]
9.292ms 499.500op/s 9.774ms 475.312op/s
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.54.0-SNAPSHOT~103834421d, baseline=1.54.0-SNAPSHOT~2cfe50a636
    dateFormat X
    axisFormat %s
section baseline
no_agent (4.274 ms) : 4222, 4325
.   : milestone, 4274,
iast (9.774 ms) : 9607, 9940
.   : milestone, 9774,
iast_FULL (14.536 ms) : 14241, 14831
.   : milestone, 14536,
iast_GLOBAL (10.804 ms) : 10608, 11000
.   : milestone, 10804,
profiling (8.828 ms) : 8685, 8970
.   : milestone, 8828,
tracing (7.815 ms) : 7703, 7926
.   : milestone, 7815,
section candidate
no_agent (4.34 ms) : 4291, 4389
.   : milestone, 4340,
iast (9.292 ms) : 9140, 9444
.   : milestone, 9292,
iast_FULL (14.106 ms) : 13824, 14388
.   : milestone, 14106,
iast_GLOBAL (10.832 ms) : 10640, 11025
.   : milestone, 10832,
profiling (8.754 ms) : 8618, 8890
.   : milestone, 8754,
tracing (7.892 ms) : 7765, 8019
.   : milestone, 7892,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.274 ms [4.222 ms, 4.325 ms] -
iast 9.774 ms [9.607 ms, 9.94 ms] 5.5 ms (128.7%)
iast_FULL 14.536 ms [14.241 ms, 14.831 ms] 10.263 ms (240.1%)
iast_GLOBAL 10.804 ms [10.608 ms, 11.0 ms] 6.53 ms (152.8%)
profiling 8.828 ms [8.685 ms, 8.97 ms] 4.554 ms (106.6%)
tracing 7.815 ms [7.703 ms, 7.926 ms] 3.541 ms (82.9%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.34 ms [4.291 ms, 4.389 ms] -
iast 9.292 ms [9.14 ms, 9.444 ms] 4.952 ms (114.1%)
iast_FULL 14.106 ms [13.824 ms, 14.388 ms] 9.766 ms (225.0%)
iast_GLOBAL 10.832 ms [10.64 ms, 11.025 ms] 6.492 ms (149.6%)
profiling 8.754 ms [8.618 ms, 8.89 ms] 4.414 ms (101.7%)
tracing 7.892 ms [7.765 ms, 8.019 ms] 3.552 ms (81.8%)
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.54.0-SNAPSHOT~103834421d, baseline=1.54.0-SNAPSHOT~2cfe50a636
    dateFormat X
    axisFormat %s
section baseline
no_agent (37.141 ms) : 36845, 37436
.   : milestone, 37141,
appsec (46.222 ms) : 45827, 46617
.   : milestone, 46222,
code_origins (45.725 ms) : 45334, 46116
.   : milestone, 45725,
iast (44.609 ms) : 44229, 44989
.   : milestone, 44609,
profiling (48.611 ms) : 48155, 49067
.   : milestone, 48611,
tracing (45.146 ms) : 44768, 45525
.   : milestone, 45146,
section candidate
no_agent (36.738 ms) : 36440, 37036
.   : milestone, 36738,
appsec (47.404 ms) : 47009, 47799
.   : milestone, 47404,
code_origins (46.004 ms) : 45621, 46388
.   : milestone, 46004,
iast (44.289 ms) : 43910, 44668
.   : milestone, 44289,
profiling (47.397 ms) : 46973, 47822
.   : milestone, 47397,
tracing (45.445 ms) : 45046, 45845
.   : milestone, 45445,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 37.141 ms [36.845 ms, 37.436 ms] -
appsec 46.222 ms [45.827 ms, 46.617 ms] 9.081 ms (24.5%)
code_origins 45.725 ms [45.334 ms, 46.116 ms] 8.584 ms (23.1%)
iast 44.609 ms [44.229 ms, 44.989 ms] 7.468 ms (20.1%)
profiling 48.611 ms [48.155 ms, 49.067 ms] 11.47 ms (30.9%)
tracing 45.146 ms [44.768 ms, 45.525 ms] 8.006 ms (21.6%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 36.738 ms [36.44 ms, 37.036 ms] -
appsec 47.404 ms [47.009 ms, 47.799 ms] 10.665 ms (29.0%)
code_origins 46.004 ms [45.621 ms, 46.388 ms] 9.266 ms (25.2%)
iast 44.289 ms [43.91 ms, 44.668 ms] 7.551 ms (20.6%)
profiling 47.397 ms [46.973 ms, 47.822 ms] 10.659 ms (29.0%)
tracing 45.445 ms [45.046 ms, 45.845 ms] 8.707 ms (23.7%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master ygree/error-logs-remediation-2
git_commit_date 1758043238 1758045005
git_commit_sha 2cfe50a 1038344
release_version 1.54.0-SNAPSHOT~2cfe50a636 1.54.0-SNAPSHOT~103834421d
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1758051961 1758051961
ci_job_id 1132423099 1132423099
ci_pipeline_id 76665092 76665092
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-86uifuqn 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-86uifuqn 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.54.0-SNAPSHOT~103834421d, baseline=1.54.0-SNAPSHOT~2cfe50a636
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.003 s) : 15003000, 15003000
.   : milestone, 15003000,
appsec (14.76 s) : 14760000, 14760000
.   : milestone, 14760000,
iast (18.072 s) : 18072000, 18072000
.   : milestone, 18072000,
iast_GLOBAL (17.734 s) : 17734000, 17734000
.   : milestone, 17734000,
profiling (15.872 s) : 15872000, 15872000
.   : milestone, 15872000,
tracing (15.064 s) : 15064000, 15064000
.   : milestone, 15064000,
section candidate
no_agent (15.259 s) : 15259000, 15259000
.   : milestone, 15259000,
appsec (15.062 s) : 15062000, 15062000
.   : milestone, 15062000,
iast (18.521 s) : 18521000, 18521000
.   : milestone, 18521000,
iast_GLOBAL (17.954 s) : 17954000, 17954000
.   : milestone, 17954000,
profiling (15.681 s) : 15681000, 15681000
.   : milestone, 15681000,
tracing (14.968 s) : 14968000, 14968000
.   : milestone, 14968000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.003 s [15.003 s, 15.003 s] -
appsec 14.76 s [14.76 s, 14.76 s] -243.0 ms (-1.6%)
iast 18.072 s [18.072 s, 18.072 s] 3.069 s (20.5%)
iast_GLOBAL 17.734 s [17.734 s, 17.734 s] 2.731 s (18.2%)
profiling 15.872 s [15.872 s, 15.872 s] 869.0 ms (5.8%)
tracing 15.064 s [15.064 s, 15.064 s] 61.0 ms (0.4%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.259 s [15.259 s, 15.259 s] -
appsec 15.062 s [15.062 s, 15.062 s] -197.0 ms (-1.3%)
iast 18.521 s [18.521 s, 18.521 s] 3.262 s (21.4%)
iast_GLOBAL 17.954 s [17.954 s, 17.954 s] 2.695 s (17.7%)
profiling 15.681 s [15.681 s, 15.681 s] 422.0 ms (2.8%)
tracing 14.968 s [14.968 s, 14.968 s] -291.0 ms (-1.9%)
Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.54.0-SNAPSHOT~103834421d, baseline=1.54.0-SNAPSHOT~2cfe50a636
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.483 ms) : 1472, 1495
.   : milestone, 1483,
appsec (3.7 ms) : 3484, 3916
.   : milestone, 3700,
iast (2.21 ms) : 2147, 2273
.   : milestone, 2210,
iast_GLOBAL (2.242 ms) : 2179, 2305
.   : milestone, 2242,
profiling (2.044 ms) : 1993, 2095
.   : milestone, 2044,
tracing (2.034 ms) : 1984, 2083
.   : milestone, 2034,
section candidate
no_agent (1.48 ms) : 1468, 1491
.   : milestone, 1480,
appsec (3.713 ms) : 3496, 3931
.   : milestone, 3713,
iast (2.21 ms) : 2147, 2273
.   : milestone, 2210,
iast_GLOBAL (2.245 ms) : 2182, 2308
.   : milestone, 2245,
profiling (2.058 ms) : 2007, 2108
.   : milestone, 2058,
tracing (2.03 ms) : 1981, 2080
.   : milestone, 2030,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.483 ms [1.472 ms, 1.495 ms] -
appsec 3.7 ms [3.484 ms, 3.916 ms] 2.217 ms (149.5%)
iast 2.21 ms [2.147 ms, 2.273 ms] 726.796 µs (49.0%)
iast_GLOBAL 2.242 ms [2.179 ms, 2.305 ms] 759.071 µs (51.2%)
profiling 2.044 ms [1.993 ms, 2.095 ms] 560.572 µs (37.8%)
tracing 2.034 ms [1.984 ms, 2.083 ms] 550.28 µs (37.1%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.48 ms [1.468 ms, 1.491 ms] -
appsec 3.713 ms [3.496 ms, 3.931 ms] 2.234 ms (151.0%)
iast 2.21 ms [2.147 ms, 2.273 ms] 730.426 µs (49.4%)
iast_GLOBAL 2.245 ms [2.182 ms, 2.308 ms] 765.743 µs (51.8%)
profiling 2.058 ms [2.007 ms, 2.108 ms] 578.003 µs (39.1%)
tracing 2.03 ms [1.981 ms, 2.08 ms] 550.787 µs (37.2%)

ProbeDefinition definition = appliedDefinitions.get(encodedProbeId);
if (definition == null) {
LOGGER.warn(SEND_TELEMETRY, "Cannot resolve probe id=" + encodedProbeId);
LOGGER.warn(SEND_TELEMETRY, "Cannot resolve probe id={}", encodedProbeId);
Copy link
Member

@jpbempel jpbempel Sep 5, 2025

Choose a reason for hiding this comment

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

this one is on purpose I want the probe ID sent to telemetry to help troubleshoot when we have this case!
this is not sensitive information. nothing related to the customer, this is a technical id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I'll roll back this one.

Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, how concat and param are different here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just curious, how concat and param are different here?

Only the format string "Cannot resolve probe id={}" is sent to the telemetry. Concatenation makes the otherwise hidden arguments available to the telemetry.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmmm, we are hiding arguments to avoid sensitive data leakage? Correct?
If that true, I wish we have API for logging, that will support params and some flag managing what should be hidden... Something self-descriptive and better than concat... because you never know if this concat for purpose or just a human mistake...

Copy link
Contributor

Choose a reason for hiding this comment

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

this one is on purpose I want the probe ID sent to telemetry to help troubleshoot when we have this case!

The logs that we send to the intake here are not really for normal troubleshooting and they are supposed to be constant message templates only so they can be properly deduplicated to reduce load.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree that this could be addressed with an API change, but we currently use the standard Logger API backed by the TelemetryLogger, which reports errors to the backend.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this one is on purpose I want the probe ID sent to telemetry to help troubleshoot when we have this case!

The logs that we send to the intake here are not really for normal troubleshooting and they are supposed to be constant message templates only so they can be properly deduplicated to reduce load.

Got it! Rolling back the rollback.

Copy link
Member

Choose a reason for hiding this comment

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

those messages are cases, like exceptions.
If we cannot use them as telemetry for troubleshooting, they are useless!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. This should be allowed. Since the call is explicitly marked with SEND_TELEMETRY, we should permit sending the necessary additional information. To address concerns about cardinality, we should consider leveraging tags to capture this type of information.

Copy link
Contributor

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@bouwkast bouwkast left a comment

Choose a reason for hiding this comment

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

Thanks @ygree!

I think it is just two left from what I can find in GitHub:

  • Debugger probe ID - I see there were comments on this one
  • Profiler settings
    • This was the main one that we discussed with profiling as they don't have access to this data in the flare, it'd be best to get sign off from someone on profiling @jbachorik (?) to see what we can do here.

ProbeDefinition definition = appliedDefinitions.get(encodedProbeId);
if (definition == null) {
LOGGER.warn(SEND_TELEMETRY, "Cannot resolve probe id=" + encodedProbeId);
LOGGER.warn(SEND_TELEMETRY, "Cannot resolve probe id={}", encodedProbeId);
Copy link
Contributor

Choose a reason for hiding this comment

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

this one is on purpose I want the probe ID sent to telemetry to help troubleshoot when we have this case!

The logs that we send to the intake here are not really for normal troubleshooting and they are supposed to be constant message templates only so they can be properly deduplicated to reduce load.

@ygree ygree force-pushed the ygree/error-logs-remediation-2 branch from ba11257 to b9af27c Compare September 5, 2025 17:35
Copy link
Contributor

@bric3 bric3 left a comment

Choose a reason for hiding this comment

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

I believe this change reveal a hidden contract for the way arguments are handled.

I am heve the same opinion as @AlexeyKuznetsov-DD in https://github.com/DataDog/dd-trace-java/pull/9467/files#r2325629568

While the idea of an analyzer works

The idea is to have an analyzer check this unless there is an exclusion that explains its purpose.

I wonder if a proper API wouldn't better suited there.

Copy link

@MattAlp MattAlp left a comment

Choose a reason for hiding this comment

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

Looks good as far as affected profiling telemetry goes.

@ygree
Copy link
Contributor Author

ygree commented Sep 10, 2025

I believe this change reveal a hidden contract for the way arguments are handled.

I am heve the same opinion as @AlexeyKuznetsov-DD in https://github.com/DataDog/dd-trace-java/pull/9467/files#r2325629568

While the idea of an analyzer works

The idea is to have an analyzer check this unless there is an exclusion that explains its purpose.

I wonder if a proper API wouldn't better suited there.

In non-error scenarios, the behavior is fully explicit, as reporting requires the SEND_TELEMETRY marker.

However, reporting errors is implicit by design. The goal is to report all errors to telemetry unless they are explicitly excluded using the EXCLUDE_TELEMETRY marker. At the same time, errors also need to be logged. Having two separate calls—one for logging and another for sending telemetry—feels redundant.

Therefore, if we introduce a dedicated API, it should log errors as well to avoid duplicating calls to the logger. Consequently, the API would also need to accept the same parameters for logging. Additionally, it would be easy to forget to call the API and only use the logger. This would result in the error never being sent to telemetry.

@ygree
Copy link
Contributor Author

ygree commented Sep 16, 2025

  • Profiler settings

    • This was the main one that we discussed with profiling as they don't have access to this data in the flare, it'd be best to get sign off from someone on profiling @jbachorik (?) to see what we can do here.

@ygree ygree enabled auto-merge (squash) September 16, 2025 19:14
@ygree ygree merged commit c68b54c into master Sep 16, 2025
516 checks passed
@ygree ygree deleted the ygree/error-logs-remediation-2 branch September 16, 2025 20:18
@github-actions github-actions bot added this to the 1.54.0 milestone Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: telemetry Telemetry type: bug Bug report and fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants