Surface potential root cause when agent initialization errors#9170
Surface potential root cause when agent initialization errors#9170AlexeyKuznetsov-DD merged 11 commits intomasterfrom
Conversation
…ror occurs during the agent's premain initialization phase.
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 48 metrics, 11 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.037 s) : 0, 1036668
Total [baseline] (10.573 s) : 0, 10572952
Agent [candidate] (1.038 s) : 0, 1037531
Total [candidate] (10.668 s) : 0, 10667986
section appsec
Agent [baseline] (1.223 s) : 0, 1222597
Total [baseline] (10.771 s) : 0, 10771005
Agent [candidate] (1.222 s) : 0, 1221541
Total [candidate] (10.759 s) : 0, 10759274
section iast
Agent [baseline] (1.173 s) : 0, 1173391
Total [baseline] (10.971 s) : 0, 10971142
Agent [candidate] (1.171 s) : 0, 1171159
Total [candidate] (10.912 s) : 0, 10911594
section profiling
Agent [baseline] (1.184 s) : 0, 1183608
Total [baseline] (10.82 s) : 0, 10819686
Agent [candidate] (1.182 s) : 0, 1181682
Total [candidate] (10.816 s) : 0, 10816285
gantt
title petclinic - break down per module: candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.421 ms) : 0, 1421
crashtracking [candidate] (1.428 ms) : 0, 1428
BytebuddyAgent [baseline] (728.394 ms) : 0, 728394
BytebuddyAgent [candidate] (728.9 ms) : 0, 728900
GlobalTracer [baseline] (240.735 ms) : 0, 240735
GlobalTracer [candidate] (241.075 ms) : 0, 241075
AppSec [baseline] (30.343 ms) : 0, 30343
AppSec [candidate] (30.376 ms) : 0, 30376
Debugger [baseline] (5.991 ms) : 0, 5991
Debugger [candidate] (6.008 ms) : 0, 6008
Remote Config [baseline] (652.732 µs) : 0, 653
Remote Config [candidate] (651.586 µs) : 0, 652
Telemetry [baseline] (8.183 ms) : 0, 8183
Telemetry [candidate] (8.214 ms) : 0, 8214
section appsec
crashtracking [baseline] (1.443 ms) : 0, 1443
crashtracking [candidate] (1.444 ms) : 0, 1444
BytebuddyAgent [baseline] (755.552 ms) : 0, 755552
BytebuddyAgent [candidate] (755.694 ms) : 0, 755694
GlobalTracer [baseline] (235.108 ms) : 0, 235108
GlobalTracer [candidate] (234.269 ms) : 0, 234269
IAST [baseline] (23.702 ms) : 0, 23702
IAST [candidate] (23.56 ms) : 0, 23560
AppSec [baseline] (167.414 ms) : 0, 167414
AppSec [candidate] (167.951 ms) : 0, 167951
Debugger [baseline] (8.593 ms) : 0, 8593
Debugger [candidate] (7.92 ms) : 0, 7920
Remote Config [baseline] (605.516 µs) : 0, 606
Remote Config [candidate] (601.009 µs) : 0, 601
Telemetry [baseline] (8.872 ms) : 0, 8872
Telemetry [candidate] (8.841 ms) : 0, 8841
section iast
crashtracking [baseline] (1.427 ms) : 0, 1427
crashtracking [candidate] (1.445 ms) : 0, 1445
BytebuddyAgent [baseline] (847.682 ms) : 0, 847682
BytebuddyAgent [candidate] (845.281 ms) : 0, 845281
GlobalTracer [baseline] (231.354 ms) : 0, 231354
GlobalTracer [candidate] (231.075 ms) : 0, 231075
IAST [baseline] (32.181 ms) : 0, 32181
IAST [candidate] (29.168 ms) : 0, 29168
AppSec [baseline] (24.812 ms) : 0, 24812
AppSec [candidate] (28.206 ms) : 0, 28206
Debugger [baseline] (6.615 ms) : 0, 6615
Debugger [candidate] (6.636 ms) : 0, 6636
Remote Config [baseline] (603.829 µs) : 0, 604
Remote Config [candidate] (581.928 µs) : 0, 582
Telemetry [baseline] (7.879 ms) : 0, 7879
Telemetry [candidate] (7.906 ms) : 0, 7906
section profiling
crashtracking [baseline] (1.425 ms) : 0, 1425
crashtracking [candidate] (1.393 ms) : 0, 1393
BytebuddyAgent [baseline] (759.316 ms) : 0, 759316
BytebuddyAgent [candidate] (757.898 ms) : 0, 757898
GlobalTracer [baseline] (220.488 ms) : 0, 220488
GlobalTracer [candidate] (220.545 ms) : 0, 220545
AppSec [baseline] (30.282 ms) : 0, 30282
AppSec [candidate] (30.233 ms) : 0, 30233
Debugger [baseline] (6.26 ms) : 0, 6260
Debugger [candidate] (6.253 ms) : 0, 6253
Remote Config [baseline] (665.94 µs) : 0, 666
Remote Config [candidate] (669.938 µs) : 0, 670
Telemetry [baseline] (12.492 ms) : 0, 12492
Telemetry [candidate] (14.572 ms) : 0, 14572
ProfilingAgent [baseline] (104.259 ms) : 0, 104259
ProfilingAgent [candidate] (101.908 ms) : 0, 101908
Profiling [baseline] (104.282 ms) : 0, 104282
Profiling [candidate] (101.932 ms) : 0, 101932
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.043 s) : 0, 1043281
Total [baseline] (8.58 s) : 0, 8580089
Agent [candidate] (1.036 s) : 0, 1035683
Total [candidate] (8.617 s) : 0, 8616564
section iast
Agent [baseline] (1.169 s) : 0, 1169487
Total [baseline] (9.21 s) : 0, 9210219
Agent [candidate] (1.175 s) : 0, 1175144
Total [candidate] (9.253 s) : 0, 9252844
gantt
title insecure-bank - break down per module: candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.439 ms) : 0, 1439
crashtracking [candidate] (1.421 ms) : 0, 1421
BytebuddyAgent [baseline] (733.078 ms) : 0, 733078
BytebuddyAgent [candidate] (727.685 ms) : 0, 727685
GlobalTracer [baseline] (241.683 ms) : 0, 241683
GlobalTracer [candidate] (240.691 ms) : 0, 240691
AppSec [baseline] (30.535 ms) : 0, 30535
AppSec [candidate] (30.29 ms) : 0, 30290
Debugger [baseline] (6.003 ms) : 0, 6003
Debugger [candidate] (5.989 ms) : 0, 5989
Remote Config [baseline] (658.541 µs) : 0, 659
Remote Config [candidate] (640.543 µs) : 0, 641
Telemetry [baseline] (8.943 ms) : 0, 8943
Telemetry [candidate] (8.17 ms) : 0, 8170
section iast
crashtracking [baseline] (1.424 ms) : 0, 1424
crashtracking [candidate] (1.438 ms) : 0, 1438
BytebuddyAgent [baseline] (844.465 ms) : 0, 844465
BytebuddyAgent [candidate] (848.832 ms) : 0, 848832
GlobalTracer [baseline] (230.654 ms) : 0, 230654
GlobalTracer [candidate] (231.75 ms) : 0, 231750
IAST [baseline] (29.728 ms) : 0, 29728
IAST [candidate] (29.922 ms) : 0, 29922
AppSec [baseline] (25.624 ms) : 0, 25624
AppSec [candidate] (28.058 ms) : 0, 28058
Debugger [baseline] (8.351 ms) : 0, 8351
Debugger [candidate] (5.741 ms) : 0, 5741
Remote Config [baseline] (586.255 µs) : 0, 586
Remote Config [candidate] (593.42 µs) : 0, 593
Telemetry [baseline] (7.868 ms) : 0, 7868
Telemetry [candidate] (7.931 ms) : 0, 7931
LoadParameters
See matching parameters
SummaryFound 3 performance improvements and 2 performance regressions! Performance is the same for 7 metrics, 12 unstable metrics.
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
dateFormat X
axisFormat %s
section baseline
no_agent (4.448 ms) : 4398, 4498
. : milestone, 4448,
iast (9.064 ms) : 8911, 9217
. : milestone, 9064,
iast_FULL (13.9 ms) : 13625, 14175
. : milestone, 13900,
iast_GLOBAL (10.219 ms) : 10041, 10396
. : milestone, 10219,
profiling (9.123 ms) : 8977, 9270
. : milestone, 9123,
tracing (8.001 ms) : 7878, 8123
. : milestone, 8001,
section candidate
no_agent (4.289 ms) : 4239, 4338
. : milestone, 4289,
iast (9.681 ms) : 9521, 9841
. : milestone, 9681,
iast_FULL (14.35 ms) : 14069, 14631
. : milestone, 14350,
iast_GLOBAL (10.51 ms) : 10321, 10698
. : milestone, 10510,
profiling (8.757 ms) : 8621, 8893
. : milestone, 8757,
tracing (7.773 ms) : 7663, 7883
. : milestone, 7773,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
dateFormat X
axisFormat %s
section baseline
no_agent (37.49 ms) : 37187, 37793
. : milestone, 37490,
appsec (46.976 ms) : 46560, 47392
. : milestone, 46976,
code_origins (47.257 ms) : 46828, 47686
. : milestone, 47257,
iast (44.456 ms) : 44071, 44841
. : milestone, 44456,
profiling (47.374 ms) : 46891, 47858
. : milestone, 47374,
tracing (43.559 ms) : 43187, 43932
. : milestone, 43559,
section candidate
no_agent (35.712 ms) : 35418, 36007
. : milestone, 35712,
appsec (48.033 ms) : 47615, 48450
. : milestone, 48033,
code_origins (46.957 ms) : 46547, 47368
. : milestone, 46957,
iast (46.069 ms) : 45667, 46471
. : milestone, 46069,
profiling (48.255 ms) : 47810, 48700
. : milestone, 48255,
tracing (44.684 ms) : 44297, 45071
. : milestone, 44684,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
dateFormat X
axisFormat %s
section baseline
no_agent (14.87 s) : 14870000, 14870000
. : milestone, 14870000,
appsec (14.611 s) : 14611000, 14611000
. : milestone, 14611000,
iast (18.475 s) : 18475000, 18475000
. : milestone, 18475000,
iast_GLOBAL (18.169 s) : 18169000, 18169000
. : milestone, 18169000,
profiling (15.304 s) : 15304000, 15304000
. : milestone, 15304000,
tracing (15.063 s) : 15063000, 15063000
. : milestone, 15063000,
section candidate
no_agent (15.259 s) : 15259000, 15259000
. : milestone, 15259000,
appsec (14.695 s) : 14695000, 14695000
. : milestone, 14695000,
iast (18.452 s) : 18452000, 18452000
. : milestone, 18452000,
iast_GLOBAL (18.004 s) : 18004000, 18004000
. : milestone, 18004000,
profiling (15.825 s) : 15825000, 15825000
. : milestone, 15825000,
tracing (14.764 s) : 14764000, 14764000
. : milestone, 14764000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
dateFormat X
axisFormat %s
section baseline
no_agent (1.473 ms) : 1461, 1484
. : milestone, 1473,
appsec (3.646 ms) : 3428, 3863
. : milestone, 3646,
iast (2.202 ms) : 2139, 2265
. : milestone, 2202,
iast_GLOBAL (2.24 ms) : 2176, 2303
. : milestone, 2240,
profiling (2.065 ms) : 2013, 2117
. : milestone, 2065,
tracing (2.017 ms) : 1968, 2065
. : milestone, 2017,
section candidate
no_agent (1.472 ms) : 1461, 1484
. : milestone, 1472,
appsec (3.642 ms) : 3426, 3857
. : milestone, 3642,
iast (2.193 ms) : 2130, 2256
. : milestone, 2193,
iast_GLOBAL (2.241 ms) : 2178, 2304
. : milestone, 2241,
profiling (2.051 ms) : 1999, 2103
. : milestone, 2051,
tracing (2.014 ms) : 1966, 2063
. : milestone, 2014,
|
sarahchen6
left a comment
There was a problem hiding this comment.
Looks good! To check my understanding -- this now returns the "top cause" (i.e. what was originally returned) along with the most root causes (max 4 levels of this).
@sarahchen6 Yes, by default it will return the top one (as before) and up to 4 from the most root. |
components/environment/src/main/java/datadog/environment/EnvironmentVariables.java
Outdated
Show resolved
Hide resolved
PerfectSlayer
left a comment
There was a problem hiding this comment.
Left some comment about the keeping the environment component with a single responsibility and avoiding to create another config system.
components/environment/src/main/java/datadog/environment/EnvironmentVariables.java
Outdated
Show resolved
Hide resolved
components/environment/src/main/java/datadog/environment/EnvironmentVariables.java
Outdated
Show resolved
Hide resolved
dd-java-agent/src/main/java/datadog/trace/bootstrap/BootstrapInitializationTelemetry.java
Outdated
Show resolved
Hide resolved
dd-java-agent/src/main/java/datadog/trace/bootstrap/BootstrapInitializationTelemetry.java
Outdated
Show resolved
Hide resolved
dd-java-agent/src/main/java/datadog/trace/bootstrap/BootstrapInitializationTelemetry.java
Outdated
Show resolved
Hide resolved
dd-java-agent/src/main/java/datadog/trace/bootstrap/BootstrapInitializationTelemetry.java
Outdated
Show resolved
Hide resolved
|
I trimmed down the PR title for changelog generation (otherwise it gets truncated with "…"). Feel free to reword it to your liking if I miss the spot 😓 |
# Conflicts: # dd-java-agent/src/main/java/datadog/trace/bootstrap/BootstrapInitializationTelemetry.java # dd-java-agent/src/test/groovy/datadog/trace/bootstrap/BootstrapInitializationTelemetryTest.groovy
| Package | Type | Package file | Manager | Update | Change | |---|---|---|---|---|---| | [redis.clients:jedis](https://github.com/redis/jedis) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `6.0.0` -> `6.1.0` | | [com.google.api.grpc:proto-google-common-protos](https://github.com/googleapis/sdk-platform-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `2.59.2` -> `2.60.0` | | [com.google.cloud:google-cloud-core-http](https://github.com/googleapis/sdk-platform-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `2.58.2` -> `2.59.0` | | [com.google.cloud:google-cloud-core](https://github.com/googleapis/sdk-platform-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `2.58.2` -> `2.59.0` | | [com.google.api:gax](https://github.com/googleapis/sdk-platform-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `2.68.2` -> `2.69.0` | | [com.squareup.wire](https://github.com/square/wire) | plugin | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5` -> `5.3.6` | | [com.squareup.wire:wire-schema](https://github.com/square/wire) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5` -> `5.3.6` | | [com.squareup.wire:wire-runtime](https://github.com/square/wire) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5` -> `5.3.6` | | [com.squareup.wire:wire-reflector](https://github.com/square/wire) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5` -> `5.3.6` | | [com.squareup.wire:wire-moshi-adapter](https://github.com/square/wire) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5` -> `5.3.6` | | [com.squareup.wire:wire-grpc-client](https://github.com/square/wire) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5` -> `5.3.6` | | [com.squareup.wire:wire-bom](https://github.com/square/wire) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5` -> `5.3.6` | | [com.datadoghq:dd-trace-api](https://github.com/datadog/dd-trace-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `1.51.2` -> `1.52.0` | | [software.amazon.awssdk:sdk-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.32.14` -> `2.32.15` | | [software.amazon.awssdk:sqs](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.32.14` -> `2.32.15` | | [software.amazon.awssdk:regions](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.32.14` -> `2.32.15` | | [software.amazon.awssdk:dynamodb-enhanced](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.32.14` -> `2.32.15` | | [software.amazon.awssdk:dynamodb](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.32.14` -> `2.32.15` | | [software.amazon.awssdk:aws-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.32.14` -> `2.32.15` | | [software.amazon.awssdk:bom](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.32.14` -> `2.32.15` | | [software.amazon.awssdk:auth](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.32.14` -> `2.32.15` | --- ### Release Notes <details> <summary>redis/jedis (redis.clients:jedis)</summary> ### [`v6.1.0`](https://github.com/redis/jedis/releases/tag/v6.1.0): 6.1.0 ### Changes #### 🚀 New Features - Add support for SVS-VAMANA vector indexing ([#​4222](redis/jedis#4222)) - Clarify why new stream entries aren't deleted with XDELEX ([#​4218](redis/jedis#4218)) - Add support for new stream commands ([#​4211](redis/jedis#4211)) - Add Support for New BITOP Operations in Redis 8.2 ([#​4188](redis/jedis#4188)) ([#​4190](redis/jedis#4190)) - Add binary stream support for XREAD and XREADGROUP ([#​3566](redis/jedis#3566)) ([#​4152](redis/jedis#4152)) - Run pipeline in current thread if all the keys on same node ([#​4149](redis/jedis#4149)) #### 🐛 Bug Fixes - Restore binary compatibility of SetParams ([#​4225](redis/jedis#4225)) - Fix memory leak in JedisClusterInfoCache - replica nodes not cleared ([#​4205](redis/jedis#4205)) - Fix:JedisCluster throws NullPointerException when maxAttempts is set to 0 ([#​4186](redis/jedis#4186)) #### 🧰 Maintenance - DOC-5471 time series doc examples ([#​4210](redis/jedis#4210)) - Bump jackson.version from 2.19.1 to 2.19.2 ([#​4208](redis/jedis#4208)) - Fix flaky test ClientCommandsTest.killSkipmeYesNo ([#​4206](redis/jedis#4206)) - Bump org.junit:junit-bom from 5.13.2 to 5.13.3 ([#​4198](redis/jedis#4198)) - Migrate publishing to Maven Central Portal ([#​4199](redis/jedis#4199)) - Bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.7 to 3.2.8 ([#​4197](redis/jedis#4197)) - Bump org.junit:junit-bom from 5.13.1 to 5.13.2 ([#​4192](redis/jedis#4192)) - DOC-5227 added probabilistic data type examples ([#​4184](redis/jedis#4184)) - Bump jackson.version from 2.19.0 to 2.19.1 ([#​4180](redis/jedis#4180)) - Update test infra to use latest Redis ([#​4179](redis/jedis#4179)) - Bump org.junit:junit-bom from 5.13.0-RC1 to 5.13.1 ([#​4174](redis/jedis#4174)) - Bump org.json:json from [`2025010`](redis/jedis@20250107) to [`2025051`](redis/jedis@20250517) ([#​4171](redis/jedis#4171)) - Bump org.apache.httpcomponents.client5:httpclient5-fluent from 5.4.4 to 5.5 ([#​4170](redis/jedis#4170)) - Fix flaky tests in DocumentTest ([#​3617](redis/jedis#3617)) - Add retryable command execution example ([#​3780](redis/jedis#3780)) - Bump jackson.version from 2.18.3 to 2.19.0 ([#​4160](redis/jedis#4160)) - Bump com.google.code.gson:gson from 2.12.1 to 2.13.1 ([#​4161](redis/jedis#4161)) #### Contributors We'd like to thank all the contributors who worked on this release! [@​219sansim](https://github.com/219sansim), [@​YoHanKi](https://github.com/YoHanKi), [@​andy-stark-redis](https://github.com/andy-stark-redis), [@​ggivo](https://github.com/ggivo), [@​jujn](https://github.com/jujn), [@​thachlp](https://github.com/thachlp), [@​uglide](https://github.com/uglide) and [@​xrayw](https://github.com/xrayw) </details> <details> <summary>googleapis/sdk-platform-java (com.google.api.grpc:proto-google-common-protos)</summary> ### [`v2.60.0`](https://github.com/googleapis/sdk-platform-java/blob/HEAD/CHANGELOG.md#2600-2025-06-23) ##### Features - handle auto pagination for BigQuery v2 ([#​3829](googleapis/sdk-platform-java#3829)) ([025c84c](googleapis/sdk-platform-java@025c84c)) ##### Dependencies - update google auth library dependencies to v1.37.1 ([#​3846](googleapis/sdk-platform-java#3846)) ([ea1d9e5](googleapis/sdk-platform-java@ea1d9e5)) - update google http client dependencies to v1.47.1 ([#​3848](googleapis/sdk-platform-java#3848)) ([a9a39d7](googleapis/sdk-platform-java@a9a39d7)) </details> <details> <summary>square/wire (com.squareup.wire)</summary> ### [`v5.3.6`](https://github.com/square/wire/blob/HEAD/CHANGELOG.md#Version-536) [Compare Source](square/wire@5.3.5...5.3.6) *2025-08-05* ##### CLI - New CLI option `--ignore_unused_roots_and_prunes` ([#​3354](square/wire#3354)) ##### JVM - Fix: Handle negative hexadecimal in default values ([#​3355](square/wire#3355)) - Optimization: Avoid copying of repeated and map types when mutableTypes are being used ([#​3352](square/wire#3352) by \[Rahul Ravikumar]\[tikurahul]) ##### Swift - Fix: Properly disambiguate OneOf enum if it has the same name as enclosing type ([#​3350](square/wire#3350) by \[Dimitris Koutsogiorgas]\[dnkoutso]) </details> <details> <summary>datadog/dd-trace-java (com.datadoghq:dd-trace-api)</summary> ### [`v1.52.0`](https://github.com/DataDog/dd-trace-java/releases/tag/v1.52.0): 1.52.0 ### Components #### Application Security Management (WAF) - ✨ Only report ASM\_DD, ASM\_DATA and ASM capabilities when AppSec is enabled ([#​9260](DataDog/dd-trace-java#9260) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - 🐛 Fix NPE in AppSecConfigServiceImpl ([#​9165](DataDog/dd-trace-java#9165) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - 🐛 Fix AppSec play.mvc.StatusHeader instrumentation for play 2.6 ([#​9160](DataDog/dd-trace-java#9160) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) #### Build & Tooling - ✨📖 Automatically register crashtracking via native extensions ([#​8851](DataDog/dd-trace-java#8851) - [@​MattAlp](https://github.com/MattAlp)) #### Configuration at Runtime - ✨ Create activation origin config for telemetry ([#​9064](DataDog/dd-trace-java#9064) - [@​sezen-datadog](https://github.com/sezen-datadog)) #### Continuous Integration Visibility - ✨ Update GitLab provided tags ([#​9275](DataDog/dd-trace-java#9275) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - 🐛 Fix base branch SHA usage in GitHub Actions ([#​9257](DataDog/dd-trace-java#9257) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - ✨ Add `ci.job.id` tag ([#​9256](DataDog/dd-trace-java#9256) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - ✨ Add new org to Weaver instrumentation ([#​9235](DataDog/dd-trace-java#9235) - [@​daniel-mohedano](https://github.com/daniel-mohedano) - thanks for the contribution!) - ✨ Improve Git commit info building ([#​9210](DataDog/dd-trace-java#9210) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - ✨ Update Attempt to Fix to v5 ([#​9145](DataDog/dd-trace-java#9145) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) #### Crash tracking - ✨📖 Automatically register crashtracking via native extensions ([#​8851](DataDog/dd-trace-java#8851) - [@​MattAlp](https://github.com/MattAlp)) #### Data Streams Monitoring - ✨ Reduce DSM CPU overheard ([#​9151](DataDog/dd-trace-java#9151) - [@​kr-igor](https://github.com/kr-igor)) - ✨⚡ DSM optimizations for high throughput scenarios ([#​9137](DataDog/dd-trace-java#9137) - [@​kr-igor](https://github.com/kr-igor)) #### Database Monitoring - 🐛 Fix duplicate trace injection for SQL Server and Oracle DBM full propagation mode ([#​9224](DataDog/dd-trace-java#9224) - [@​lu-zhengda](https://github.com/lu-zhengda)) #### Dynamic Instrumentation - 🐛 Add URI in string primitives ([#​9285](DataDog/dd-trace-java#9285) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Increase SourceFile tracking max queue size ([#​9271](DataDog/dd-trace-java#9271) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Add capping on SourceFile tracking queue ([#​9245](DataDog/dd-trace-java#9245) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Add third-party filtering in SourceFile tracking ([#​9205](DataDog/dd-trace-java#9205) - [@​jpbempel](https://github.com/jpbempel)) #### ML Observability (LLMObs) - ✨ Add methods to capture embedding and retrieval spans ([#​9297](DataDog/dd-trace-java#9297) - [@​nayeem-kamal](https://github.com/nayeem-kamal)) #### Metrics - ✨ Change primary client stats configuration key ([#​9196](DataDog/dd-trace-java#9196) - [@​amarziali](https://github.com/amarziali)) - ✨ Calculate client stats also if the span kind is eligible ([#​9157](DataDog/dd-trace-java#9157) - [@​amarziali](https://github.com/amarziali)) - ✨ Backpropagate peer tags ([#​9144](DataDog/dd-trace-java#9144) - [@​bric3](https://github.com/bric3)) - 🐛 Make client stats reliable in case of downgrade ([#​9136](DataDog/dd-trace-java#9136) - [@​amarziali](https://github.com/amarziali)) #### Platform components - 🐛 Fix VM options parsing from /proc/fs ([#​9255](DataDog/dd-trace-java#9255) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) #### Profiling - ✨ Switch profile compression to zstd default ([#​9293](DataDog/dd-trace-java#9293) - [@​jbachorik](https://github.com/jbachorik)) - ✨ Bump ddprof to 1.29.0 ([#​9262](DataDog/dd-trace-java#9262) - [@​zhengyu123](https://github.com/zhengyu123)) - Potential memory leak and race with the JVMTI wallclock sampler by [@​zhengyu123](https://github.com/zhengyu123) in DataDog/java-profiler#234 - Downport async-profiler no-allocation changes by [@​zhengyu123](https://github.com/zhengyu123) in DataDog/java-profiler#245 - Adopt openjdk safefetch by [@​zhengyu123](https://github.com/zhengyu123) in DataDog/java-profiler#246 - Safe fetch 64-bit value and pointer by [@​zhengyu123](https://github.com/zhengyu123) in DataDog/java-profiler#247 - Rebase on Async-Profiler 4.1 by [@​jbachorik](https://github.com/jbachorik) in DataDog/java-profiler#252 - Patch upstream stackWalker.cpp not to fail on unaligned access by [@​jbachorik](https://github.com/jbachorik) in DataDog/java-profiler#218 - Remap thread id to avoid bitmap contention by [@​zhengyu123](https://github.com/zhengyu123) in DataDog/java-profiler#229 - Improve performance using Unsafe to activate/deactivate thread filter by [@​zhengyu123](https://github.com/zhengyu123) in DataDog/java-profiler#230 - Unify context propagation by [@​zhengyu123](https://github.com/zhengyu123) in DataDog/java-profiler#231 - 🐛 Fix the profiler stackdepth setting propagation in recent (22+) Java versions ([#​9130](DataDog/dd-trace-java#9130) - [@​jbachorik](https://github.com/jbachorik)) #### Realtime User Monitoring - ✨ Wrap servlet original PrintWriter on rum injector ([#​9146](DataDog/dd-trace-java#9146) - [@​amarziali](https://github.com/amarziali)) #### Telemetry - ✨ Create activation origin config for telemetry ([#​9064](DataDog/dd-trace-java#9064) - [@​sezen-datadog](https://github.com/sezen-datadog)) #### Tracer core - ✨⚡ Reduce span construction overhead by switching to optimized TagMap ([#​8589](DataDog/dd-trace-java#8589) - [@​dougqh](https://github.com/dougqh)) - 🐛 Match Hands Off Config selectors on process\_arguments value ([#​9201](DataDog/dd-trace-java#9201) - [@​paullegranddc](https://github.com/paullegranddc)) - ✨ Move JSON generation to sender thread to improve startup time. ([#​9197](DataDog/dd-trace-java#9197) - [@​AlexeyKuznetsov-DD](https://github.com/AlexeyKuznetsov-DD)) - ✨ Improve agent to avoid loading global config on main thread ([#​9190](DataDog/dd-trace-java#9190) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) - ✨ add injection metadata fields to telemetry forwarder ([#​9185](DataDog/dd-trace-java#9185) - [@​sydney-tung](https://github.com/sydney-tung)) - 🐛 Avoid race conditions on feature discovery during Writer creation ([#​9173](DataDog/dd-trace-java#9173) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - ✨ Surface potential root cause when agent initialization errors ([#​9170](DataDog/dd-trace-java#9170) - [@​AlexeyKuznetsov-DD](https://github.com/AlexeyKuznetsov-DD)) - 💡 Support adding W3C baggage as span tags ([#​9169](DataDog/dd-trace-java#9169) - [@​rachelyangdog](https://github.com/rachelyangdog)) - ✨⚡ Align our default classloader excludes with OTel ([#​9161](DataDog/dd-trace-java#9161) - [@​mcculls](https://github.com/mcculls)) - ✨ Backpropagate container tags hash coming from the info endpoint ([#​9156](DataDog/dd-trace-java#9156) - [@​amarziali](https://github.com/amarziali)) - 🐛 Avoid race conditions and multiple agent discovery feature states ([#​9135](DataDog/dd-trace-java#9135) - [@​amarziali](https://github.com/amarziali)) ### Instrumentations #### AWS SDK instrumentation - ✨ Enhance Service Representation for Serverless ([#​9203](DataDog/dd-trace-java#9203) - [@​zarirhamza](https://github.com/zarirhamza)) #### gRPC instrumentation - 🐛 Add check to prevent injection of repeated GRPC headers ([#​9246](DataDog/dd-trace-java#9246) - [@​mhlidd](https://github.com/mhlidd)) #### JDBC instrumentation - 🐛 Fix duplicate trace injection for SQL Server and Oracle DBM full propagation mode ([#​9224](DataDog/dd-trace-java#9224) - [@​lu-zhengda](https://github.com/lu-zhengda)) #### Play Framework instrumentation - 🐛 Fix AppSec play.mvc.StatusHeader instrumentation for play 2.6 ([#​9160](DataDog/dd-trace-java#9160) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 6pm every weekday,before 2am every weekday" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). GitOrigin-RevId: 9da36329ffa552291a640381780b608ef6513e29
What Does This Do
Added logic to unwind and surface the potential root cause when an error occurs during the agent's pre-main initialization phase.
Motivation
Add more context in case of error during pre-main step.
Additional Notes
Contributor Checklist
type:and (comp:orinst:) labels in addition to any usefull labelsclose,fixor any linking keywords when referencing an issue.Use
solvesinstead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]