Skip to content

Report all set configuration sources to telemetry #9273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from

Conversation

mtoffl01
Copy link
Contributor

@mtoffl01 mtoffl01 commented Jul 29, 2025

What Does This Do

Updates our telemetry reporting for SDK configurations to include all set configuration sources in the app-started telemetry event, not just the highest-precedence ("applied") source.

For example, if logs injection is configured via both a JVM option and an environment variable, we now report both sources—whereas previously, only the applied source (e.g., jvm_prop) was reported.

[{ "name": "logs_injection_enabled", "origin": "code", "value": true }]

Now, we report all of them, including the default, along with a seq_id field to track precedence.

[
  { "name": "logs_injection_enabled", "origin": "default", "value": false, "seq_id": 1 },
  { "name": "logs_injection_enabled", "origin": "env_var", "value": true, "seq_id": 2 },
  { "name": "logs_injection_enabled", "origin": "jvm_prop", "value": true, "seq_id": 3 }
]

Details

  • Introduces a new precedence field to ConfigOrigin
  • Modifies ConfigProvider to report all non-null config values, not just the first
  • Updates ConfigCollector to track one setting per origin, per key, using a Map<String, Map<ConfigOrigin, ConfigSetting>>
  • Update telemetry classes to support the new data structure without breaking existing APIs

Motivation

The endgoal is to surface all of these configurations and their sources to users in the UI. See Motivation section of the RFC for more details.

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@pr-commenter
Copy link

pr-commenter bot commented Jul 29, 2025

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mtoff/config-sources
git_commit_date 1754334504 1754335607
git_commit_sha 0f91094 c698d29
release_version 1.53.0-SNAPSHOT~0f91094b82 1.51.1-SNAPSHOT~c698d29484
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1754337869 1754337869
ci_job_id 1063465011 1063465011
ci_pipeline_id 72644501 72644501
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-4p9l8ua6 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-4p9l8ua6 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 1 performance regressions! Performance is the same for 47 metrics, 11 unstable metrics.

scenario Δ mean execution_time candidate mean execution_time baseline mean execution_time
scenario:startup:petclinic:tracing:Remote Config worse
[+16.805µs; +47.335µs] or [+2.562%; +7.217%]
687.925µs 655.855µs
Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.51.1-SNAPSHOT~c698d29484, baseline=1.53.0-SNAPSHOT~0f91094b82

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.053 s) : 0, 1053257
Total [baseline] (10.783 s) : 0, 10783414
Agent [candidate] (1.044 s) : 0, 1044091
Total [candidate] (10.677 s) : 0, 10677497
section appsec
Agent [baseline] (1.22 s) : 0, 1220343
Total [baseline] (10.792 s) : 0, 10791637
Agent [candidate] (1.221 s) : 0, 1221483
Total [candidate] (10.743 s) : 0, 10743297
section iast
Agent [baseline] (1.183 s) : 0, 1182751
Total [baseline] (10.858 s) : 0, 10858120
Agent [candidate] (1.193 s) : 0, 1193184
Total [candidate] (11.001 s) : 0, 11001311
section profiling
Agent [baseline] (1.2 s) : 0, 1199576
Total [baseline] (10.93 s) : 0, 10930290
Agent [candidate] (1.209 s) : 0, 1209095
Total [candidate] (10.956 s) : 0, 10955836
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.053 s -
Agent appsec 1.22 s 167.086 ms (15.9%)
Agent iast 1.183 s 129.495 ms (12.3%)
Agent profiling 1.2 s 146.319 ms (13.9%)
Total tracing 10.783 s -
Total appsec 10.792 s 8.222 ms (0.1%)
Total iast 10.858 s 74.706 ms (0.7%)
Total profiling 10.93 s 146.875 ms (1.4%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.044 s -
Agent appsec 1.221 s 177.391 ms (17.0%)
Agent iast 1.193 s 149.092 ms (14.3%)
Agent profiling 1.209 s 165.003 ms (15.8%)
Total tracing 10.677 s -
Total appsec 10.743 s 65.8 ms (0.6%)
Total iast 11.001 s 323.814 ms (3.0%)
Total profiling 10.956 s 278.339 ms (2.6%)
gantt
    title petclinic - break down per module: candidate=1.51.1-SNAPSHOT~c698d29484, baseline=1.53.0-SNAPSHOT~0f91094b82

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.431 ms) : 0, 1431
crashtracking [candidate] (1.439 ms) : 0, 1439
BytebuddyAgent [baseline] (738.074 ms) : 0, 738074
BytebuddyAgent [candidate] (731.733 ms) : 0, 731733
GlobalTracer [baseline] (243.938 ms) : 0, 243938
GlobalTracer [candidate] (241.159 ms) : 0, 241159
AppSec [baseline] (30.501 ms) : 0, 30501
AppSec [candidate] (30.359 ms) : 0, 30359
Debugger [baseline] (6.059 ms) : 0, 6059
Debugger [candidate] (5.965 ms) : 0, 5965
Remote Config [baseline] (655.855 µs) : 0, 656
Remote Config [candidate] (687.925 µs) : 0, 688
Telemetry [baseline] (11.516 ms) : 0, 11516
Telemetry [candidate] (11.82 ms) : 0, 11820
section appsec
crashtracking [baseline] (1.427 ms) : 0, 1427
crashtracking [candidate] (1.435 ms) : 0, 1435
BytebuddyAgent [baseline] (753.466 ms) : 0, 753466
BytebuddyAgent [candidate] (755.215 ms) : 0, 755215
GlobalTracer [baseline] (235.454 ms) : 0, 235454
GlobalTracer [candidate] (234.372 ms) : 0, 234372
IAST [baseline] (23.528 ms) : 0, 23528
IAST [candidate] (23.612 ms) : 0, 23612
AppSec [baseline] (169.329 ms) : 0, 169329
AppSec [candidate] (170.812 ms) : 0, 170812
Debugger [baseline] (7.212 ms) : 0, 7212
Debugger [candidate] (5.778 ms) : 0, 5778
Remote Config [baseline] (612.145 µs) : 0, 612
Remote Config [candidate] (602.498 µs) : 0, 602
Telemetry [baseline] (8.244 ms) : 0, 8244
Telemetry [candidate] (8.273 ms) : 0, 8273
section iast
crashtracking [baseline] (1.434 ms) : 0, 1434
crashtracking [candidate] (1.445 ms) : 0, 1445
BytebuddyAgent [baseline] (854.32 ms) : 0, 854320
BytebuddyAgent [candidate] (863.09 ms) : 0, 863090
GlobalTracer [baseline] (232.945 ms) : 0, 232945
GlobalTracer [candidate] (233.285 ms) : 0, 233285
IAST [baseline] (27.722 ms) : 0, 27722
IAST [candidate] (28.046 ms) : 0, 28046
AppSec [baseline] (29.724 ms) : 0, 29724
AppSec [candidate] (31.133 ms) : 0, 31133
Debugger [baseline] (6.654 ms) : 0, 6654
Debugger [candidate] (6.038 ms) : 0, 6038
Remote Config [baseline] (586.917 µs) : 0, 587
Remote Config [candidate] (610.373 µs) : 0, 610
Telemetry [baseline] (8.195 ms) : 0, 8195
Telemetry [candidate] (8.321 ms) : 0, 8321
section profiling
crashtracking [baseline] (1.415 ms) : 0, 1415
crashtracking [candidate] (1.428 ms) : 0, 1428
BytebuddyAgent [baseline] (764.326 ms) : 0, 764326
BytebuddyAgent [candidate] (770.719 ms) : 0, 770719
GlobalTracer [baseline] (222.863 ms) : 0, 222863
GlobalTracer [candidate] (223.068 ms) : 0, 223068
AppSec [baseline] (30.235 ms) : 0, 30235
AppSec [candidate] (30.827 ms) : 0, 30827
Debugger [baseline] (6.331 ms) : 0, 6331
Debugger [candidate] (6.386 ms) : 0, 6386
Remote Config [baseline] (697.857 µs) : 0, 698
Remote Config [candidate] (665.491 µs) : 0, 665
Telemetry [baseline] (15.966 ms) : 0, 15966
Telemetry [candidate] (15.132 ms) : 0, 15132
ProfilingAgent [baseline] (108.143 ms) : 0, 108143
ProfilingAgent [candidate] (108.827 ms) : 0, 108827
Profiling [baseline] (108.791 ms) : 0, 108791
Profiling [candidate] (109.445 ms) : 0, 109445
Loading
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.51.1-SNAPSHOT~c698d29484, baseline=1.53.0-SNAPSHOT~0f91094b82

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.043 s) : 0, 1042995
Total [baseline] (8.585 s) : 0, 8584877
Agent [candidate] (1.046 s) : 0, 1045735
Total [candidate] (8.569 s) : 0, 8568758
section iast
Agent [baseline] (1.182 s) : 0, 1182463
Total [baseline] (9.299 s) : 0, 9299036
Agent [candidate] (1.175 s) : 0, 1174532
Total [candidate] (9.329 s) : 0, 9329220
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.043 s -
Agent iast 1.182 s 139.468 ms (13.4%)
Total tracing 8.585 s -
Total iast 9.299 s 714.159 ms (8.3%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.046 s -
Agent iast 1.175 s 128.797 ms (12.3%)
Total tracing 8.569 s -
Total iast 9.329 s 760.462 ms (8.9%)
gantt
    title insecure-bank - break down per module: candidate=1.51.1-SNAPSHOT~c698d29484, baseline=1.53.0-SNAPSHOT~0f91094b82

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.434 ms) : 0, 1434
crashtracking [candidate] (1.425 ms) : 0, 1425
BytebuddyAgent [baseline] (730.159 ms) : 0, 730159
BytebuddyAgent [candidate] (733.54 ms) : 0, 733540
GlobalTracer [baseline] (241.721 ms) : 0, 241721
GlobalTracer [candidate] (241.65 ms) : 0, 241650
AppSec [baseline] (30.095 ms) : 0, 30095
AppSec [candidate] (30.453 ms) : 0, 30453
Debugger [baseline] (6.02 ms) : 0, 6020
Debugger [candidate] (5.98 ms) : 0, 5980
Remote Config [baseline] (655.752 µs) : 0, 656
Remote Config [candidate] (689.409 µs) : 0, 689
Telemetry [baseline] (11.869 ms) : 0, 11869
Telemetry [candidate] (11.103 ms) : 0, 11103
section iast
crashtracking [baseline] (1.434 ms) : 0, 1434
crashtracking [candidate] (1.42 ms) : 0, 1420
BytebuddyAgent [baseline] (854.371 ms) : 0, 854371
BytebuddyAgent [candidate] (848.407 ms) : 0, 848407
GlobalTracer [baseline] (232.786 ms) : 0, 232786
GlobalTracer [candidate] (230.779 ms) : 0, 230779
IAST [baseline] (28.717 ms) : 0, 28717
IAST [candidate] (25.849 ms) : 0, 25849
AppSec [baseline] (29.648 ms) : 0, 29648
AppSec [candidate] (32.555 ms) : 0, 32555
Debugger [baseline] (5.788 ms) : 0, 5788
Debugger [candidate] (5.847 ms) : 0, 5847
Remote Config [baseline] (590.939 µs) : 0, 591
Remote Config [candidate] (579.654 µs) : 0, 580
Telemetry [baseline] (8.151 ms) : 0, 8151
Telemetry [candidate] (8.152 ms) : 0, 8152
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mtoff/config-sources
git_commit_date 1754334504 1754335607
git_commit_sha 0f91094 c698d29
release_version 1.53.0-SNAPSHOT~0f91094b82 1.51.1-SNAPSHOT~c698d29484
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1754337528 1754337528
ci_job_id 1063465012 1063465012
ci_pipeline_id 72644501 72644501
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-gc421cex 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-gc421cex 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
[-541.221µs; -200.687µs] or [-5.607%; -2.079%]
unstable
[-37.543op/s; +75.793op/s] or [-7.803%; +15.753%]
9.282ms 500.250op/s 9.653ms 481.125op/s
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.51.1-SNAPSHOT~c698d29484, baseline=1.53.0-SNAPSHOT~0f91094b82
    dateFormat X
    axisFormat %s
section baseline
no_agent (37.641 ms) : 37332, 37949
.   : milestone, 37641,
appsec (48.719 ms) : 48298, 49140
.   : milestone, 48719,
code_origins (46.312 ms) : 45921, 46703
.   : milestone, 46312,
iast (44.674 ms) : 44282, 45065
.   : milestone, 44674,
profiling (49.598 ms) : 49126, 50070
.   : milestone, 49598,
tracing (44.109 ms) : 43740, 44479
.   : milestone, 44109,
section candidate
no_agent (37.18 ms) : 36889, 37471
.   : milestone, 37180,
appsec (48.124 ms) : 47699, 48549
.   : milestone, 48124,
code_origins (45.748 ms) : 45360, 46136
.   : milestone, 45748,
iast (45.868 ms) : 45461, 46275
.   : milestone, 45868,
profiling (48.905 ms) : 48455, 49356
.   : milestone, 48905,
tracing (44.347 ms) : 43953, 44741
.   : milestone, 44347,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 37.641 ms [37.332 ms, 37.949 ms] -
appsec 48.719 ms [48.298 ms, 49.14 ms] 11.078 ms (29.4%)
code_origins 46.312 ms [45.921 ms, 46.703 ms] 8.671 ms (23.0%)
iast 44.674 ms [44.282 ms, 45.065 ms] 7.033 ms (18.7%)
profiling 49.598 ms [49.126 ms, 50.07 ms] 11.957 ms (31.8%)
tracing 44.109 ms [43.74 ms, 44.479 ms] 6.469 ms (17.2%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 37.18 ms [36.889 ms, 37.471 ms] -
appsec 48.124 ms [47.699 ms, 48.549 ms] 10.945 ms (29.4%)
code_origins 45.748 ms [45.36 ms, 46.136 ms] 8.568 ms (23.0%)
iast 45.868 ms [45.461 ms, 46.275 ms] 8.688 ms (23.4%)
profiling 48.905 ms [48.455 ms, 49.356 ms] 11.726 ms (31.5%)
tracing 44.347 ms [43.953 ms, 44.741 ms] 7.167 ms (19.3%)
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.51.1-SNAPSHOT~c698d29484, baseline=1.53.0-SNAPSHOT~0f91094b82
    dateFormat X
    axisFormat %s
section baseline
no_agent (4.363 ms) : 4314, 4413
.   : milestone, 4363,
iast (9.653 ms) : 9491, 9814
.   : milestone, 9653,
iast_FULL (13.903 ms) : 13631, 14174
.   : milestone, 13903,
iast_GLOBAL (10.083 ms) : 9908, 10259
.   : milestone, 10083,
profiling (8.765 ms) : 8620, 8911
.   : milestone, 8765,
tracing (7.508 ms) : 7403, 7613
.   : milestone, 7508,
section candidate
no_agent (4.365 ms) : 4316, 4415
.   : milestone, 4365,
iast (9.282 ms) : 9127, 9436
.   : milestone, 9282,
iast_FULL (13.962 ms) : 13682, 14242
.   : milestone, 13962,
iast_GLOBAL (10.328 ms) : 10149, 10507
.   : milestone, 10328,
profiling (9.002 ms) : 8862, 9142
.   : milestone, 9002,
tracing (7.394 ms) : 7290, 7497
.   : milestone, 7394,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.363 ms [4.314 ms, 4.413 ms] -
iast 9.653 ms [9.491 ms, 9.814 ms] 5.289 ms (121.2%)
iast_FULL 13.903 ms [13.631 ms, 14.174 ms] 9.539 ms (218.6%)
iast_GLOBAL 10.083 ms [9.908 ms, 10.259 ms] 5.72 ms (131.1%)
profiling 8.765 ms [8.62 ms, 8.911 ms] 4.402 ms (100.9%)
tracing 7.508 ms [7.403 ms, 7.613 ms] 3.144 ms (72.1%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.365 ms [4.316 ms, 4.415 ms] -
iast 9.282 ms [9.127 ms, 9.436 ms] 4.916 ms (112.6%)
iast_FULL 13.962 ms [13.682 ms, 14.242 ms] 9.597 ms (219.8%)
iast_GLOBAL 10.328 ms [10.149 ms, 10.507 ms] 5.962 ms (136.6%)
profiling 9.002 ms [8.862 ms, 9.142 ms] 4.637 ms (106.2%)
tracing 7.394 ms [7.29 ms, 7.497 ms] 3.028 ms (69.4%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mtoff/config-sources
git_commit_date 1754334504 1754335607
git_commit_sha 0f91094 c698d29
release_version 1.53.0-SNAPSHOT~0f91094b82 1.51.1-SNAPSHOT~c698d29484
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1754338019 1754338019
ci_job_id 1063465013 1063465013
ci_pipeline_id 72644501 72644501
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-gtidre2f 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-gtidre2f 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 10 metrics, 2 unstable metrics.

Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.51.1-SNAPSHOT~c698d29484, baseline=1.53.0-SNAPSHOT~0f91094b82
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.479 ms) : 1468, 1491
.   : milestone, 1479,
appsec (3.644 ms) : 3429, 3860
.   : milestone, 3644,
iast (2.207 ms) : 2144, 2269
.   : milestone, 2207,
iast_GLOBAL (2.236 ms) : 2173, 2299
.   : milestone, 2236,
profiling (2.477 ms) : 2312, 2642
.   : milestone, 2477,
tracing (2.024 ms) : 1976, 2073
.   : milestone, 2024,
section candidate
no_agent (1.475 ms) : 1463, 1486
.   : milestone, 1475,
appsec (3.656 ms) : 3440, 3872
.   : milestone, 3656,
iast (2.209 ms) : 2146, 2271
.   : milestone, 2209,
iast_GLOBAL (2.248 ms) : 2186, 2311
.   : milestone, 2248,
profiling (2.065 ms) : 2014, 2115
.   : milestone, 2065,
tracing (2.016 ms) : 1968, 2065
.   : milestone, 2016,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.479 ms [1.468 ms, 1.491 ms] -
appsec 3.644 ms [3.429 ms, 3.86 ms] 2.165 ms (146.3%)
iast 2.207 ms [2.144 ms, 2.269 ms] 727.37 µs (49.2%)
iast_GLOBAL 2.236 ms [2.173 ms, 2.299 ms] 756.446 µs (51.1%)
profiling 2.477 ms [2.312 ms, 2.642 ms] 997.465 µs (67.4%)
tracing 2.024 ms [1.976 ms, 2.073 ms] 544.596 µs (36.8%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.475 ms [1.463 ms, 1.486 ms] -
appsec 3.656 ms [3.44 ms, 3.872 ms] 2.181 ms (147.9%)
iast 2.209 ms [2.146 ms, 2.271 ms] 733.967 µs (49.8%)
iast_GLOBAL 2.248 ms [2.186 ms, 2.311 ms] 773.72 µs (52.5%)
profiling 2.065 ms [2.014 ms, 2.115 ms] 589.732 µs (40.0%)
tracing 2.016 ms [1.968 ms, 2.065 ms] 541.509 µs (36.7%)
Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.51.1-SNAPSHOT~c698d29484, baseline=1.53.0-SNAPSHOT~0f91094b82
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.522 s) : 15522000, 15522000
.   : milestone, 15522000,
appsec (14.889 s) : 14889000, 14889000
.   : milestone, 14889000,
iast (18.728 s) : 18728000, 18728000
.   : milestone, 18728000,
iast_GLOBAL (17.956 s) : 17956000, 17956000
.   : milestone, 17956000,
profiling (15.153 s) : 15153000, 15153000
.   : milestone, 15153000,
tracing (15.053 s) : 15053000, 15053000
.   : milestone, 15053000,
section candidate
no_agent (15.513 s) : 15513000, 15513000
.   : milestone, 15513000,
appsec (14.708 s) : 14708000, 14708000
.   : milestone, 14708000,
iast (18.802 s) : 18802000, 18802000
.   : milestone, 18802000,
iast_GLOBAL (18.201 s) : 18201000, 18201000
.   : milestone, 18201000,
profiling (15.221 s) : 15221000, 15221000
.   : milestone, 15221000,
tracing (14.991 s) : 14991000, 14991000
.   : milestone, 14991000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.522 s [15.522 s, 15.522 s] -
appsec 14.889 s [14.889 s, 14.889 s] -633.0 ms (-4.1%)
iast 18.728 s [18.728 s, 18.728 s] 3.206 s (20.7%)
iast_GLOBAL 17.956 s [17.956 s, 17.956 s] 2.434 s (15.7%)
profiling 15.153 s [15.153 s, 15.153 s] -369.0 ms (-2.4%)
tracing 15.053 s [15.053 s, 15.053 s] -469.0 ms (-3.0%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.513 s [15.513 s, 15.513 s] -
appsec 14.708 s [14.708 s, 14.708 s] -805.0 ms (-5.2%)
iast 18.802 s [18.802 s, 18.802 s] 3.289 s (21.2%)
iast_GLOBAL 18.201 s [18.201 s, 18.201 s] 2.688 s (17.3%)
profiling 15.221 s [15.221 s, 15.221 s] -292.0 ms (-1.9%)
tracing 14.991 s [14.991 s, 14.991 s] -522.0 ms (-3.4%)

@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Aug 1, 2025

Code coverage: total 58.12%, base diff 1.02%, patch 100.00% (view details)

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

Comment on lines +47 to +48
ConfigSetting configSetting =
ConfigCollector.get().getAppliedConfigSetting(LOGS_INJECTION_ENABLED);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

NOTE!

Previously this method invoked collect() on the ConfigCollector; collect() drains the collector, which seems at odds with the expected behavior of getLogInjectionEnabled()—a method that, based on its name, should simply read a value rather than mutate or clear state.

Is getLogInjectionEnabled() supposed to trigger a collection cycle? If so — why? But also, we just have to call collect() manually here as well.

@mtoffl01 mtoffl01 requested review from mcculls and ygree August 4, 2025 15:35
Copy link
Contributor

@mhlidd mhlidd left a comment

Choose a reason for hiding this comment

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

Generally looks good to me. I do wonder if it would be better to actually reverse the order we lookup sources (i.e. from least prioritized, aka DEFAULTS, to most prioritized) so that we can avoid an if check for each new source (whether it is the first source that we find and its value needs to be returned), and an if check at the end (for whether to return a value from a source of a value from the default).

for (ConfigProvider.Source source : sources) {
String value = source.get(key, aliases);
// TODO: Is a source still configured "set" if it's empty, though?
Copy link
Contributor

Choose a reason for hiding this comment

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

Given the description of the function, I would say no.

@mtoffl01 mtoffl01 closed this Aug 5, 2025
@mtoffl01
Copy link
Contributor Author

mtoffl01 commented Aug 5, 2025

Closed in favor of #9307

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.

2 participants