- Notifications
You must be signed in to change notification settings - Fork 313
Support targeting services with configurations in stable configuration file #8526
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
Conversation
...src/main/java/datadog/trace/bootstrap/config/provider/StableConfigYaml/StableConfigYaml.java Outdated Show resolved Hide resolved
internal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigSource.java Outdated Show resolved Hide resolved
...nal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigYaml/Selector.java Outdated Show resolved Hide resolved
internal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigYaml/Rule.java Outdated Show resolved Hide resolved
internal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigParser.java Outdated Show resolved Hide resolved
internal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigParser.java Outdated Show resolved Hide resolved
…ider/VMArgsCache.java Co-authored-by: datadog-datadog-prod-us1[bot] <88084959+datadog-datadog-prod-us1[bot]@users.noreply.github.com>
…ider/VMArgsCache.java Co-authored-by: datadog-datadog-prod-us1[bot] <88084959+datadog-datadog-prod-us1[bot]@users.noreply.github.com>
…ider/VMArgsCache.java Co-authored-by: datadog-datadog-prod-us1[bot] <88084959+datadog-datadog-prod-us1[bot]@users.noreply.github.com>
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 65 metrics, 6 unstable metrics. Startup time reports for insecure-bankgantt title insecure-bank - global startup overhead: candidate=1.48.0-SNAPSHOT~23f1013e88, baseline=1.48.0-SNAPSHOT~8adba3f8b4 dateFormat X axisFormat %s section tracing Agent [baseline] (1.065 s) : 0, 1064979 Total [baseline] (8.718 s) : 0, 8718335 Agent [candidate] (1.058 s) : 0, 1057675 Total [candidate] (8.701 s) : 0, 8700935 section iast Agent [baseline] (1.191 s) : 0, 1190611 Total [baseline] (9.286 s) : 0, 9286451 Agent [candidate] (1.206 s) : 0, 1205841 Total [candidate] (9.3 s) : 0, 9299707 section iast_HARDCODED_SECRET_DISABLED Agent [baseline] (1.184 s) : 0, 1183871 Total [baseline] (9.267 s) : 0, 9266881 Agent [candidate] (1.195 s) : 0, 1194628 Total [candidate] (9.247 s) : 0, 9246783 section iast_TELEMETRY_OFF Agent [baseline] (1.176 s) : 0, 1176197 Total [baseline] (9.285 s) : 0, 9284531 Agent [candidate] (1.187 s) : 0, 1186520 Total [candidate] (9.281 s) : 0, 9281035
gantt title insecure-bank - break down per module: candidate=1.48.0-SNAPSHOT~23f1013e88, baseline=1.48.0-SNAPSHOT~8adba3f8b4 dateFormat X axisFormat %s section tracing BytebuddyAgent [baseline] (726.956 ms) : 0, 726956 BytebuddyAgent [candidate] (722.392 ms) : 0, 722392 GlobalTracer [baseline] (242.358 ms) : 0, 242358 GlobalTracer [candidate] (240.453 ms) : 0, 240453 AppSec [baseline] (57.516 ms) : 0, 57516 AppSec [candidate] (54.613 ms) : 0, 54613 Debugger [baseline] (4.445 ms) : 0, 4445 Debugger [candidate] (4.392 ms) : 0, 4392 Remote Config [baseline] (712.461 µs) : 0, 712 Remote Config [candidate] (691.579 µs) : 0, 692 Telemetry [baseline] (12.285 ms) : 0, 12285 Telemetry [candidate] (14.371 ms) : 0, 14371 section iast BytebuddyAgent [baseline] (845.8 ms) : 0, 845800 BytebuddyAgent [candidate] (857.472 ms) : 0, 857472 GlobalTracer [baseline] (231.085 ms) : 0, 231085 GlobalTracer [candidate] (233.611 ms) : 0, 233611 IAST [baseline] (23.613 ms) : 0, 23613 IAST [candidate] (23.208 ms) : 0, 23208 AppSec [baseline] (55.794 ms) : 0, 55794 AppSec [candidate] (56.681 ms) : 0, 56681 Debugger [baseline] (4.232 ms) : 0, 4232 Debugger [candidate] (4.194 ms) : 0, 4194 Remote Config [baseline] (626.721 µs) : 0, 627 Remote Config [candidate] (610.628 µs) : 0, 611 Telemetry [baseline] (8.895 ms) : 0, 8895 Telemetry [candidate] (8.951 ms) : 0, 8951 section iast_HARDCODED_SECRET_DISABLED BytebuddyAgent [baseline] (839.5 ms) : 0, 839500 BytebuddyAgent [candidate] (848.512 ms) : 0, 848512 GlobalTracer [baseline] (231.567 ms) : 0, 231567 GlobalTracer [candidate] (231.919 ms) : 0, 231919 IAST [baseline] (22.938 ms) : 0, 22938 IAST [candidate] (23.119 ms) : 0, 23119 AppSec [baseline] (55.772 ms) : 0, 55772 AppSec [candidate] (56.442 ms) : 0, 56442 Debugger [baseline] (4.161 ms) : 0, 4161 Debugger [candidate] (4.171 ms) : 0, 4171 Remote Config [baseline] (619.698 µs) : 0, 620 Remote Config [candidate] (601.703 µs) : 0, 602 Telemetry [baseline] (8.799 ms) : 0, 8799 Telemetry [candidate] (8.76 ms) : 0, 8760 section iast_TELEMETRY_OFF BytebuddyAgent [baseline] (835.063 ms) : 0, 835063 BytebuddyAgent [candidate] (843.471 ms) : 0, 843471 GlobalTracer [baseline] (229.315 ms) : 0, 229315 GlobalTracer [candidate] (230.489 ms) : 0, 230489 IAST [baseline] (22.255 ms) : 0, 22255 IAST [candidate] (22.222 ms) : 0, 22222 AppSec [baseline] (55.86 ms) : 0, 55860 AppSec [candidate] (56.047 ms) : 0, 56047 Debugger [baseline] (4.171 ms) : 0, 4171 Debugger [candidate] (4.135 ms) : 0, 4135 Remote Config [baseline] (602.08 µs) : 0, 602 Remote Config [candidate] (606.042 µs) : 0, 606 Telemetry [baseline] (8.539 ms) : 0, 8539 Telemetry [candidate] (8.634 ms) : 0, 8634 Startup time reports for petclinicgantt title petclinic - global startup overhead: candidate=1.48.0-SNAPSHOT~23f1013e88, baseline=1.48.0-SNAPSHOT~8adba3f8b4 dateFormat X axisFormat %s section tracing Agent [baseline] (1.053 s) : 0, 1053041 Total [baseline] (10.5 s) : 0, 10500128 Agent [candidate] (1.057 s) : 0, 1056625 Total [candidate] (10.488 s) : 0, 10488334 section appsec Agent [baseline] (1.194 s) : 0, 1193540 Total [baseline] (10.725 s) : 0, 10724595 Agent [candidate] (1.203 s) : 0, 1203327 Total [candidate] (10.767 s) : 0, 10766857 section iast Agent [baseline] (1.182 s) : 0, 1182276 Total [baseline] (11.022 s) : 0, 11022487 Agent [candidate] (1.185 s) : 0, 1184636 Total [candidate] (11.074 s) : 0, 11074431 section profiling Agent [baseline] (1.284 s) : 0, 1283874 Total [baseline] (10.857 s) : 0, 10856990 Agent [candidate] (1.281 s) : 0, 1281414 Total [candidate] (10.92 s) : 0, 10919543
gantt title petclinic - break down per module: candidate=1.48.0-SNAPSHOT~23f1013e88, baseline=1.48.0-SNAPSHOT~8adba3f8b4 dateFormat X axisFormat %s section tracing BytebuddyAgent [baseline] (720.437 ms) : 0, 720437 BytebuddyAgent [candidate] (721.864 ms) : 0, 721864 GlobalTracer [baseline] (239.701 ms) : 0, 239701 GlobalTracer [candidate] (239.787 ms) : 0, 239787 AppSec [baseline] (54.396 ms) : 0, 54396 AppSec [candidate] (55.284 ms) : 0, 55284 Debugger [baseline] (4.392 ms) : 0, 4392 Debugger [candidate] (4.423 ms) : 0, 4423 Remote Config [baseline] (698.924 µs) : 0, 699 Remote Config [candidate] (705.941 µs) : 0, 706 Telemetry [baseline] (12.896 ms) : 0, 12896 Telemetry [candidate] (13.665 ms) : 0, 13665 section appsec BytebuddyAgent [baseline] (737.337 ms) : 0, 737337 BytebuddyAgent [candidate] (743.569 ms) : 0, 743569 GlobalTracer [baseline] (235.685 ms) : 0, 235685 GlobalTracer [candidate] (237.619 ms) : 0, 237619 IAST [baseline] (21.64 ms) : 0, 21640 IAST [candidate] (21.655 ms) : 0, 21655 AppSec [baseline] (175.726 ms) : 0, 175726 AppSec [candidate] (176.076 ms) : 0, 176076 Debugger [baseline] (4.28 ms) : 0, 4280 Debugger [candidate] (4.316 ms) : 0, 4316 Remote Config [baseline] (640.648 µs) : 0, 641 Remote Config [candidate] (662.441 µs) : 0, 662 Telemetry [baseline] (8.631 ms) : 0, 8631 Telemetry [candidate] (9.347 ms) : 0, 9347 section iast BytebuddyAgent [baseline] (839.528 ms) : 0, 839528 BytebuddyAgent [candidate] (841.263 ms) : 0, 841263 GlobalTracer [baseline] (230.062 ms) : 0, 230062 GlobalTracer [candidate] (230.632 ms) : 0, 230632 IAST [baseline] (22.851 ms) : 0, 22851 IAST [candidate] (22.708 ms) : 0, 22708 AppSec [baseline] (55.992 ms) : 0, 55992 AppSec [candidate] (55.772 ms) : 0, 55772 Debugger [baseline] (4.1 ms) : 0, 4100 Debugger [candidate] (4.13 ms) : 0, 4130 Remote Config [baseline] (620.576 µs) : 0, 621 Remote Config [candidate] (597.693 µs) : 0, 598 Telemetry [baseline] (8.664 ms) : 0, 8664 Telemetry [candidate] (8.728 ms) : 0, 8728 section profiling BytebuddyAgent [baseline] (714.777 ms) : 0, 714777 BytebuddyAgent [candidate] (712.099 ms) : 0, 712099 GlobalTracer [baseline] (351.025 ms) : 0, 351025 GlobalTracer [candidate] (350.267 ms) : 0, 350267 AppSec [baseline] (54.599 ms) : 0, 54599 AppSec [candidate] (53.627 ms) : 0, 53627 Debugger [baseline] (4.338 ms) : 0, 4338 Debugger [candidate] (4.337 ms) : 0, 4337 Remote Config [baseline] (709.369 µs) : 0, 709 Remote Config [candidate] (706.588 µs) : 0, 707 Telemetry [baseline] (9.057 ms) : 0, 9057 Telemetry [candidate] (8.975 ms) : 0, 8975 ProfilingAgent [baseline] (103.242 ms) : 0, 103242 ProfilingAgent [candidate] (103.299 ms) : 0, 103299 Profiling [baseline] (103.269 ms) : 0, 103269 Profiling [candidate] (103.325 ms) : 0, 103325 LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 14 metrics, 16 unstable metrics. Request duration reports for petclinicgantt title petclinic - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~23f1013e88, baseline=1.48.0-SNAPSHOT~8adba3f8b4 dateFormat X axisFormat %s section baseline no_agent (1.352 ms) : 1333, 1372 . : milestone, 1352, appsec (1.73 ms) : 1706, 1754 . : milestone, 1730, appsec_no_iast (1.738 ms) : 1714, 1762 . : milestone, 1738, code_origins (1.673 ms) : 1646, 1700 . : milestone, 1673, iast (1.527 ms) : 1503, 1552 . : milestone, 1527, profiling (1.523 ms) : 1499, 1547 . : milestone, 1523, tracing (1.497 ms) : 1471, 1522 . : milestone, 1497, section candidate no_agent (1.353 ms) : 1333, 1372 . : milestone, 1353, appsec (1.747 ms) : 1724, 1769 . : milestone, 1747, appsec_no_iast (1.737 ms) : 1714, 1759 . : milestone, 1737, code_origins (1.697 ms) : 1671, 1723 . : milestone, 1697, iast (1.516 ms) : 1491, 1541 . : milestone, 1516, profiling (1.526 ms) : 1502, 1550 . : milestone, 1526, tracing (1.486 ms) : 1461, 1511 . : milestone, 1486,
Request duration reports for insecure-bankgantt title insecure-bank - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~23f1013e88, baseline=1.48.0-SNAPSHOT~8adba3f8b4 dateFormat X axisFormat %s section baseline no_agent (379.884 µs) : 360, 400 . : milestone, 380, iast (512.907 µs) : 491, 535 . : milestone, 513, iast_FULL (728.76 µs) : 706, 751 . : milestone, 729, iast_GLOBAL (559.055 µs) : 537, 581 . : milestone, 559, iast_HARDCODED_SECRET_DISABLED (512.776 µs) : 491, 535 . : milestone, 513, iast_INACTIVE (463.451 µs) : 442, 485 . : milestone, 463, iast_TELEMETRY_OFF (497.455 µs) : 476, 519 . : milestone, 497, tracing (453.181 µs) : 432, 474 . : milestone, 453, section candidate no_agent (379.133 µs) : 359, 399 . : milestone, 379, iast (514.609 µs) : 492, 537 . : milestone, 515, iast_FULL (732.832 µs) : 711, 755 . : milestone, 733, iast_GLOBAL (561.636 µs) : 539, 584 . : milestone, 562, iast_HARDCODED_SECRET_DISABLED (509.291 µs) : 488, 531 . : milestone, 509, iast_INACTIVE (465.462 µs) : 444, 487 . : milestone, 465, iast_TELEMETRY_OFF (491.772 µs) : 470, 514 . : milestone, 492, tracing (466.941 µs) : 446, 488 . : milestone, 467,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for biojavagantt title biojava - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~23f1013e88, baseline=1.48.0-SNAPSHOT~8adba3f8b4 dateFormat X axisFormat %s section baseline no_agent (15.474 s) : 15474000, 15474000 . : milestone, 15474000, appsec (14.951 s) : 14951000, 14951000 . : milestone, 14951000, iast (19.054 s) : 19054000, 19054000 . : milestone, 19054000, iast_GLOBAL (18.117 s) : 18117000, 18117000 . : milestone, 18117000, profiling (15.021 s) : 15021000, 15021000 . : milestone, 15021000, tracing (15.021 s) : 15021000, 15021000 . : milestone, 15021000, section candidate no_agent (15.435 s) : 15435000, 15435000 . : milestone, 15435000, appsec (15.043 s) : 15043000, 15043000 . : milestone, 15043000, iast (18.445 s) : 18445000, 18445000 . : milestone, 18445000, iast_GLOBAL (17.95 s) : 17950000, 17950000 . : milestone, 17950000, profiling (14.948 s) : 14948000, 14948000 . : milestone, 14948000, tracing (15.021 s) : 15021000, 15021000 . : milestone, 15021000,
Execution time for tomcatgantt title tomcat - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~23f1013e88, baseline=1.48.0-SNAPSHOT~8adba3f8b4 dateFormat X axisFormat %s section baseline no_agent (1.472 ms) : 1460, 1483 . : milestone, 1472, appsec (2.368 ms) : 2321, 2414 . : milestone, 2368, iast (2.146 ms) : 2088, 2205 . : milestone, 2146, iast_GLOBAL (2.189 ms) : 2130, 2247 . : milestone, 2189, profiling (2.029 ms) : 1981, 2078 . : milestone, 2029, tracing (1.965 ms) : 1920, 2010 . : milestone, 1965, section candidate no_agent (1.473 ms) : 1461, 1484 . : milestone, 1473, appsec (2.362 ms) : 2316, 2408 . : milestone, 2362, iast (2.143 ms) : 2085, 2202 . : milestone, 2143, iast_GLOBAL (2.184 ms) : 2125, 2243 . : milestone, 2184, profiling (1.992 ms) : 1946, 2039 . : milestone, 1992, tracing (1.972 ms) : 1927, 2017 . : milestone, 1972,
|
...src/main/java/datadog/trace/bootstrap/config/provider/StableConfigYaml/ConfigurationMap.java Outdated Show resolved Hide resolved
internal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigParser.java Outdated Show resolved Hide resolved
public ConfigurationMap() { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// as not to re-run this query | ||
return true; | ||
case "tags": | ||
// TODO: Determine where tags are sourced from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: We may not fully flesh out tags in time, but this should not be a blocker, so this should return false
for now and be marked with a TODO to support it and a link to the spec.
public ConfigurationMap() { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dd-java-agent/build.gradle Outdated
relocate 'okhttp3', 'datadog.okhttp3' | ||
relocate 'okio', 'datadog.okio' | ||
// Include the YAML config classes in bootstrap | ||
relocate 'datadog.trace.bootstrap.config.provider.StableConfigYaml', 'datadog.trace.bootstrap.config.provider.stableconfigyaml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heads up @mcculls - I had to add this entry after encountering a NoClassDefException error at runtime for line 34 of StableConfigParser.java (which invokes StableConfigYaml.class
). After adding this line, Java is now passing all system tests. I'm not sure if there are any concerns with this approach.
a8b93c7
to 2798bed
Compare internal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigParser.java Outdated Show resolved Hide resolved
injectEnvConfig("DD_PROFILING_ENABLED", "true") | ||
injectEnvConfig("DD_SERVICE", "mysvc") | ||
injectEnvConfig("DD_TAGS", "team:apm,component:web") | ||
// injectSysConfig("--DCustomKey", "value") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcculls ,
I tried to use this method to test against jvm args, but did not work. Do you know of alternatives?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'd need a test that forks a new JVM and is able to add JVM arguments.
You could use IntegrationTestUtils.runOnSeparateJvm
to do that, you would need to create a simple Java main class that prints out something to show the JVM arguments have been processed (i.e. the configuration reflects the JVM arguments)
There's an example of this in https://github.com/DataDog/dd-trace-java/blob/master/dd-java-agent/src/test/groovy/datadog/trace/agent/CustomLogManagerTest.groovy
However, it might make more sense to have this covered in a system test...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Working on a system test for this now.
...src/main/java/datadog/trace/bootstrap/config/provider/stableconfigyaml/ConfigurationMap.java Outdated Show resolved Hide resolved
...al-api/src/test/groovy/datadog/trace/bootstrap/config/provider/StableConfigParserTest.groovy Outdated Show resolved Hide resolved
internal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigParser.java Show resolved Hide resolved
internal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigSource.java Outdated Show resolved Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - I'd like to get a second review from @amarziali since I'm co-author here
…ider/stableconfigyaml/ConfigurationMap.java Co-authored-by: Stuart McCulloch <stuart.mcculloch@datadoghq.com>
…ider/StableConfigSource.java Co-authored-by: Stuart McCulloch <stuart.mcculloch@datadoghq.com>
b7806c6
to dd40811
Compare There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm cursory review for IDM
(April 3 10:00am): Marking with See |
| Package | Type | Package file | Manager | Update | Change | |---|---|---|---|---|---| | org.flywaydb.flyway | plugin | misk/gradle/libs.versions.toml | gradle | minor | `11.6.0` -> `11.7.0` | | [com.squareup.okio:okio-fakefilesystem](https://github.com/square/okio) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `3.10.2` -> `3.11.0` | | [com.squareup.okio:okio](https://github.com/square/okio) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `3.10.2` -> `3.11.0` | | [com.autonomousapps.dependency-analysis](https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin) | plugin | misk/gradle/libs.versions.toml | gradle | minor | `2.15.0` -> `2.16.0` | | [com.datadoghq:dd-trace-api](https://github.com/datadog/dd-trace-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `1.47.3` -> `1.48.1` | | [com.datadoghq:dd-trace-ot](https://github.com/datadog/dd-trace-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `1.47.3` -> `1.48.1` | | [software.amazon.awssdk:sdk-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.18` -> `2.31.20` | | [software.amazon.awssdk:sqs](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.18` -> `2.31.20` | | [software.amazon.awssdk:dynamodb-enhanced](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.18` -> `2.31.20` | | [software.amazon.awssdk:dynamodb](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.18` -> `2.31.20` | | [software.amazon.awssdk:aws-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.18` -> `2.31.20` | | [software.amazon.awssdk:bom](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.18` -> `2.31.20` | | [software.amazon.awssdk:auth](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.18` -> `2.31.20` | --- ### Release Notes <details> <summary>square/okio (com.squareup.okio:okio-fakefilesystem)</summary> ### [`v3.11.0`](https://github.com/square/okio/blob/HEAD/CHANGELOG.md#Version-3110) *2025-04-09* - Fix: Clear the deflater's byte array reference - New: Faster implementation of `String.decodeHex()` on Kotlin/JS. - New: Declare `EXACTLY_ONCE` execution for blocks like `Closeable.use {}` and `FileSystem.read {}`. - Upgrade: \[Kotlin 2.1.20]\[kotlin\_2\_1\_20]. </details> <details> <summary>autonomousapps/dependency-analysis-android-gradle-plugin (com.autonomousapps.dependency-analysis)</summary> ### [`v2.16.0`](https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin/blob/HEAD/CHANGELOG.md#Version-2160) - \[Feat]: support `com.android.test` projects. - \[Feat]: support typesafe project accessors with opt-in. ```kotlin dependencyAnalysis { useTypesafeProjectAccessors(true) // false by default } ``` </details> <details> <summary>datadog/dd-trace-java (com.datadoghq:dd-trace-api)</summary> ### [`v1.48.1`](https://github.com/DataDog/dd-trace-java/releases/tag/v1.48.1): 1.48.1 ### Components #### Tracer internal logging - 🐛 Remove print line causing unnecessary logs ([#​8687](DataDog/dd-trace-java#8687) - [@​sarahchen6](https://github.com/sarahchen6)) ### [`v1.48.0`](https://github.com/DataDog/dd-trace-java/releases/tag/v1.48.0): 1.48.0 ### Known Bugs > \[!NOTE] > If you are experiencing issues with spamming timeout logs, please update to the [latest version](https://github.com/DataDog/dd-trace-java/releases/latest) or set [JDK_SOCKET_ENABLED](https://github.com/DataDog/dd-trace-java/blob/33fc3c9a9b7cda3beda88b8b3e5224ae2b10764a/dd-trace-api/src/main/java/datadog/trace/api/config/GeneralConfig.java#L98) to false. ### Components #### Application Security Management (IAST) - ✨ Fix vulnerability location org.jose4j.lang.HashUtil ([#​8610](DataDog/dd-trace-java#8610) - [@​jandro996](https://github.com/jandro996)) - ✨ Fix weak randomness in oracle.ucp.util.OpaqueString ([#​8609](DataDog/dd-trace-java#8609) - [@​jandro996](https://github.com/jandro996)) - ✨ Fix weak hash false positive in oracle.security.o5logon.O5Logon ([#​8608](DataDog/dd-trace-java#8608) - [@​jandro996](https://github.com/jandro996)) - 🐛 Prevent before callsites targeting constructors in super calls ([#​8549](DataDog/dd-trace-java#8549) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) #### Application Security Management (WAF) - ✨ Update login events public SDK to V2 ([#​8620](DataDog/dd-trace-java#8620) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - 🐛 Send RASP LFI capability only when AppSec is statically enabled ([#​8573](DataDog/dd-trace-java#8573) - [@​jandro996](https://github.com/jandro996)) - ✨ Improve detection of missing request end events ([#​8510](DataDog/dd-trace-java#8510) - [@​smola](https://github.com/smola)) - 🧹 Remove remote configuration for API Security sampling rate ([#​8486](DataDog/dd-trace-java#8486) - [@​smola](https://github.com/smola)) - ✨ Add setUser to user monitoring SDK ([#​8482](DataDog/dd-trace-java#8482) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ Add missing address for signup event ([#​8469](DataDog/dd-trace-java#8469) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ Allow login events SDK to be used with appsec disabled ([#​8464](DataDog/dd-trace-java#8464) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ Add support for endpoint discovery in spring mvc ([#​8352](DataDog/dd-trace-java#8352) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ New API Security sampling algorithm ([#​8178](DataDog/dd-trace-java#8178) - [@​ValentinZakharov](https://github.com/ValentinZakharov)) #### Build & Tooling - ✨ Add buffer size customizability to JDK UDS support ([#​8629](DataDog/dd-trace-java#8629) - [@​sarahchen6](https://github.com/sarahchen6)) - ✨ Add JDK built-in support for UDS on Java 16+ ([#​8314](DataDog/dd-trace-java#8314) - [@​sarahchen6](https://github.com/sarahchen6)) #### Configuration at Runtime - 🐛 Send RASP LFI capability only when AppSec is statically enabled ([#​8573](DataDog/dd-trace-java#8573) - [@​jandro996](https://github.com/jandro996)) #### Continuous Integration Visibility - 🐛 Prevent double reporting of Scalatest events when using SBT with test forking ([#​8682](DataDog/dd-trace-java#8682) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - 🐛 Shutdown CI Visibility test event handlers before tracer ([#​8677](DataDog/dd-trace-java#8677) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - 🐛 Do not apply JUnit 4 instrumentation to MUnit runners ([#​8675](DataDog/dd-trace-java#8675), [#​8683](DataDog/dd-trace-java#8683) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - ✨ Remove error log when source path resolution fails on isModified check ([#​8663](DataDog/dd-trace-java#8663) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - ✨ Implement tests reordering for JUnit 4 ([#​8650](DataDog/dd-trace-java#8650) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - 🐛 Set default Attempt to Fix retries if none provided from the backend ([#​8615](DataDog/dd-trace-java#8615) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - ✨ Allow to manually set PR info ([#​8566](DataDog/dd-trace-java#8566) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - 🐛 Fix Test Optimization init when repo root cannot be determined ([#​8533](DataDog/dd-trace-java#8533) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - ✨ Add capabilities tagging ([#​8499](DataDog/dd-trace-java#8499), [#​8540](DataDog/dd-trace-java#8540) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) #### Crash tracking - 🐛 Remove dependency on bash from crash/oome uploder scripts ([#​8652](DataDog/dd-trace-java#8652) - [@​jbachorik](https://github.com/jbachorik)) #### Data Streams Monitoring - ✨ e2e pipeline configuration when data jobs is enabled ([#​8553](DataDog/dd-trace-java#8553) - [@​kr-igor](https://github.com/kr-igor)) #### Dynamic Instrumentation - 🐛 Fix In-Product when config is empty ([#​8679](DataDog/dd-trace-java#8679) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Add support for filtering shaded third-party libs ([#​8612](DataDog/dd-trace-java#8612) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Add In-Product Enablement ([#​8587](DataDog/dd-trace-java#8587) - [@​jpbempel](https://github.com/jpbempel)) - ✨⚡ Reduce footprint of SourceFile tracking ([#​8524](DataDog/dd-trace-java#8524) - [@​jpbempel](https://github.com/jpbempel)) - ✨⚡ Optimize the SourceFile tracking ([#​8520](DataDog/dd-trace-java#8520) - [@​jpbempel](https://github.com/jpbempel)) #### OpenTracing - 🧹 Remove activeScope() use in OpenTracing shim ([#​8478](DataDog/dd-trace-java#8478) - [@​mcculls](https://github.com/mcculls)) #### Profiling - ✨ Add profiler env check command to AgentCLI ([#​8671](DataDog/dd-trace-java#8671) - [@​jbachorik](https://github.com/jbachorik)) - ✨ Bump ddprof to 1.23.0 ([#​8668](DataDog/dd-trace-java#8668) - [@​jbachorik](https://github.com/jbachorik)) - Fix a crash related to ElfParser::loadSymbolTable ([#​191](DataDog/dd-trace-java#191)) by [@​yanglong1010](https://github.com/yanglong1010) in DataDog/java-profiler#192 - Unwind String.indexOf intrinsic on AArch64 by [@​MattAlp](https://github.com/MattAlp) in DataDog/java-profiler#193 - Fix Java 24 support by [@​jbachorik](https://github.com/jbachorik) in DataDog/java-profiler#194 - A set of fixes related to clang, aarch64 and musl pecularities of vmstructs stack unwinder by [@​jbachorik](https://github.com/jbachorik) in DataDog/java-profiler#199 - 🐛 Remove process information from JFR recording ([#​8661](DataDog/dd-trace-java#8661) - [@​r1viollet](https://github.com/r1viollet)) - 🐛 Make TempLocationManager USER aware ([#​8605](DataDog/dd-trace-java#8605) - [@​jbachorik](https://github.com/jbachorik)) - ✨ Extract git tags from embedded git.properties and datadog_git.properties ([#​8561](DataDog/dd-trace-java#8561) - [@​wmouchere](https://github.com/wmouchere)) #### Telemetry - 🐛 Fix appsec.rasp.error and appsec.waf.error telemetry metrics ([#​8624](DataDog/dd-trace-java#8624) - [@​jandro996](https://github.com/jandro996)) - ✨ Create metric: appsec.rasp.rule.skipped ([#​8618](DataDog/dd-trace-java#8618) - [@​jandro996](https://github.com/jandro996)) - ✨ Extract git tags from embedded git.properties and datadog_git.properties ([#​8561](DataDog/dd-trace-java#8561) - [@​wmouchere](https://github.com/wmouchere)) #### Testing - 🧹 Simplify ssi tests one-pipeline ([#​8558](DataDog/dd-trace-java#8558) - [@​robertomonteromiguel](https://github.com/robertomonteromiguel)) - ✨ Add smoke tests for java's concurrent API ([#​8438](DataDog/dd-trace-java#8438) - [@​sarahchen6](https://github.com/sarahchen6)) #### Trace context propagation - ✨ Adding Support for `TRACE_PROPAGATION_BEHAVIOR_EXTRACT` ([#​8535](DataDog/dd-trace-java#8535) - [@​mhlidd](https://github.com/mhlidd)) #### Tracer core - 🐛 Ensure shaded helpers have unique names ([#​8559](DataDog/dd-trace-java#8559) - [@​amarziali](https://github.com/amarziali)) - ✨ Support common config sources for user-provided git info ([#​8547](DataDog/dd-trace-java#8547) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - ✨ Make the default config sources more robust when a security manager is installed ([#​8544](DataDog/dd-trace-java#8544) - [@​mcculls](https://github.com/mcculls)) - ✨ Support targeting services with configurations in stable configuration file ([#​8526](DataDog/dd-trace-java#8526) - [@​mtoffl01](https://github.com/mtoffl01)) - ✨ Add new parser for `DD_TAGS` and prioritizing `DD_SERVICE` ([#​8296](DataDog/dd-trace-java#8296) - [@​mhlidd](https://github.com/mhlidd)) #### Tracer internal logging - 🐛 Add missing debug log for the cloudPayloadTaggingServices config ([#​8600](DataDog/dd-trace-java#8600) - [@​ygree](https://github.com/ygree)) - ✨ Add the possibility to output the logs of the Java tracer in JSON ([#​8083](DataDog/dd-trace-java#8083) - [@​cecile75](https://github.com/cecile75)) #### Tracer public API - ✨ Introducing `DD_TRACE_EXPERIMENTAL_FEATURES_ENABLED` Config ([#​8536](DataDog/dd-trace-java#8536) - [@​mhlidd](https://github.com/mhlidd)) - ✨ Config Consistency Round 2 ([#​8489](DataDog/dd-trace-java#8489) - [@​mhlidd](https://github.com/mhlidd)) ### Instrumentations #### - 🐛 Fix NPE in getMdcCopy of LoggingEventInstrumentation ([#​8599](DataDog/dd-trace-java#8599) - [@​ygree](https://github.com/ygree)) #### Apache Spark instrumentation - ✨ Instrument Runtime.exit() to finish spark application spans ([#​8572](DataDog/dd-trace-java#8572) - [@​paul-laffon-dd](https://github.com/paul-laffon-dd)) - ✨ Configure OpenLineage if present in Spark instrumentation ([#​8541](DataDog/dd-trace-java#8541) - [@​mobuchowski](https://github.com/mobuchowski)) #### Armeria Instrumentation - ✨ Support armeria grpc 1.32.3 ([#​8606](DataDog/dd-trace-java#8606) - [@​github-actions](https://github.com/github-actions)\[bot]) #### AWS DynamoDB Instrumentation - ✨ Create DynamoDB instrumentation + add span pointers for `updateItem` and `deleteItem` ([#​8490](DataDog/dd-trace-java#8490) - [@​nhulston](https://github.com/nhulston)) #### AWS SDK instrumentation - ✨ Add DynamoDB in DEFAULT_TRACE_CLOUD_PAYLOAD_TAGGING_SERVICES ([#​8595](DataDog/dd-trace-java#8595) - [@​joeyzhao2018](https://github.com/joeyzhao2018)) #### Azure Functions instrumentation - ✨ Enable tracer computed trace metrics by default for Azure Functions ([#​8518](DataDog/dd-trace-java#8518) - [@​duncanpharvey](https://github.com/duncanpharvey)) - 💡 Add azure-functions instrumentation ([#​8432](DataDog/dd-trace-java#8432) - [@​duncanpharvey](https://github.com/duncanpharvey)) #### Core Java language instrumentation - 🐛 Fix ForkJoinPool.execute() instrumentation on Java 21+ ([#​8560](DataDog/dd-trace-java#8560) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) #### Eclipse Vert.x instrumentation - ✨ Add vertx postgresql client instrumentation ([#​8471](DataDog/dd-trace-java#8471) - [@​vandonr](https://github.com/vandonr) - thanks for the contribution!) #### Kafka instrumentation - ✨ Support and test kafka-clients 4 ([#​8581](DataDog/dd-trace-java#8581) - [@​amarziali](https://github.com/amarziali)) #### Kotlin instrumentation - ✨ Avoid disconnected traces when using Kotlin flowOn ([#​8651](DataDog/dd-trace-java#8651) - [@​mcculls](https://github.com/mcculls)) #### OpenTelemetry instrumentation - 🧹 Migrate OtelContext wrapper to new internal Context API ([#​8645](DataDog/dd-trace-java#8645) - [@​mcculls](https://github.com/mcculls)) #### Spring instrumentation - 🐛 Support CompletableFuture on spring webmvc controllers ([#​8659](DataDog/dd-trace-java#8659) - [@​amarziali](https://github.com/amarziali)) - ✨ Add support for endpoint discovery in spring mvc ([#​8352](DataDog/dd-trace-java#8352) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) #### WebSocket Instrumentation - ✨ Instrument Jetty websocket pojo ([#​8562](DataDog/dd-trace-java#8562) - [@​amarziali](https://github.com/amarziali)) - 💡 Instrument Java Websocket API (JSR356) ([#​8440](DataDog/dd-trace-java#8440) - [@​amarziali](https://github.com/amarziali)) #### All other instrumentations - ✨ Introduce cache for peer.hostname lookup ([#​8601](DataDog/dd-trace-java#8601) - [@​mcculls](https://github.com/mcculls)) - ✨ Support pekko http 1.1 ([#​8532](DataDog/dd-trace-java#8532) - [@​amarziali](https://github.com/amarziali)) </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**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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: 331314f71acaced3adc75ea5d7e855c248d593fc
What Does This Do
Apply configurations to processes based on target rules specified in stable configuration files.
Stable Configuration, Phase 2: RFC
Motivation
Configs were previously applied to all [compatible] processes running on the injected server; with Phase 2, you can apply configurations to specific processes, rather than across the server.
Additional Notes
Passing all system tests: DataDog/system-tests#4333
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]