Skip to content

Conversation

@mtoffl01
Copy link
Contributor

@mtoffl01 mtoffl01 commented Sep 23, 2025

Motivation

Support for Enhanced Config Reporting will be added to dd-trace-java v1.53.0-SNAPSHOT thanks to: DataDog/dd-trace-java#9404

Changes

  • Enable Test_TelemetryEnhancedConfigReporting for Java v1.53.0-SNAPSHOT
  • Mount config file onto all Java weblog containers
  • Modify DD_TRACE_CONFIG to point to absolute file path

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • If PR title starts with [<language>], double-check that only <language> is impacted by the change
  • No system-tests internal is modified. Otherwise, I have the approval from R&P team
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added (or removed)?

@mtoffl01 mtoffl01 requested review from a team as code owners September 23, 2025 15:12
@mtoffl01 mtoffl01 marked this pull request as draft September 23, 2025 15:12
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2025

CODEOWNERS have been resolved as:

manifests/java.yml                                                      @DataDog/asm-java @DataDog/apm-java
tests/test_telemetry.py                                                 @DataDog/libdatadog-telemetry @DataDog/apm-sdk-capabilities @DataDog/system-tests-core
utils/_context/_scenarios/__init__.py                                   @DataDog/system-tests-core
utils/build/docker/java/akka-http.Dockerfile                            @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/jersey-grizzly2.Dockerfile                      @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/play.Dockerfile                                 @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/ratpack.Dockerfile                              @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/resteasy-netty3.Dockerfile                      @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/spring-boot-3-native.Dockerfile                 @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/spring-boot-jetty.Dockerfile                    @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/spring-boot-openliberty.Dockerfile              @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/spring-boot-payara.Dockerfile                   @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/spring-boot-undertow.Dockerfile                 @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/spring-boot-wildfly.Dockerfile                  @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/spring-boot.Dockerfile                          @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/uds-spring-boot.Dockerfile                      @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/vertx3.Dockerfile                               @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/vertx4.Dockerfile                               @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/ConfigChaining.properties                       @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core

@mtoffl01 mtoffl01 marked this pull request as ready for review October 3, 2025 19:37
@mtoffl01 mtoffl01 requested review from a team as code owners October 3, 2025 19:37
@mtoffl01 mtoffl01 requested a review from paullegranddc October 3, 2025 19:37
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.

Thanks for the changes! 🙏 Just a few small questions.

{
"origin": "jvm_prop",
"value": "true",
}, # File-based properties have a lower precedence than env_var: https://github.com/DataDog/dd-trace-java/blob/5c66a150ff3b16ebf9626c0f0170fc9715461a6b/utils/config-utils/src/main/java/datadog/trace/bootstrap/config/provider/ConfigProvider.java#L507-L514
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
}, # File-based properties have a lower precedence than env_var: https://github.com/DataDog/dd-trace-java/blob/5c66a150ff3b16ebf9626c0f0170fc9715461a6b/utils/config-utils/src/main/java/datadog/trace/bootstrap/config/provider/ConfigProvider.java#L507-L514
}, # File-based properties have a lower precedence than env_var (different that System Properties which have the same origin but a higher precedence than env_var): https://github.com/DataDog/dd-trace-java/blob/5c66a150ff3b16ebf9626c0f0170fc9715461a6b/utils/config-utils/src/main/java/datadog/trace/bootstrap/config/provider/ConfigProvider.java#L507-L514

Not necessarily this wording, but I do feel like it makes sense to state that there is a nuance between origin and the actual source that is used.


ENV JVM_ARGS='-javaagent:/app/dd-java-agent.jar'
COPY ./utils/build/docker/java/ConfigChaining.properties app/ConfigChaining.properties
ENV JVM_ARGS='-javaagent:/app/dd-java-agent.jar -Ddd.trace.config=/app/ConfigChaining.properties'
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if you tested this already, but is it possible to change this in the definition of the Scenario? AKA would updating DD_TRACE_CONFIG to/app/ConfigChaining.properties work for all weblog apps? 🤔

@mtoffl01 mtoffl01 requested a review from mhlidd October 6, 2025 17:49
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.

One small change. Otherwise LGTM! 🚀

# FIXME: Fails on APPSEC_BLOCKING, see APPSEC-51405
# ENV DD_TRACE_INTERNAL_EXIT_ON_FAILURE=true

COPY ./utils/build/docker/java/ConfigChaining.properties app/ConfigChaining.properties
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
COPY ./utils/build/docker/java/ConfigChaining.properties app/ConfigChaining.properties

Duplicate from above

@mtoffl01 mtoffl01 marked this pull request as draft October 6, 2025 18:54
@mtoffl01 mtoffl01 changed the title [java] Enable Test_TelemetryEnhancedConfigReporting Enable Test_TelemetryEnhancedConfigReporting for java Oct 6, 2025
@mtoffl01 mtoffl01 force-pushed the mtoff/java-config-sources branch from ac1c288 to 25743d5 Compare October 6, 2025 20:45
@mtoffl01 mtoffl01 marked this pull request as ready for review October 7, 2025 14:30
@mtoffl01 mtoffl01 merged commit 7e329cf into main Oct 8, 2025
2696 of 2698 checks passed
@mtoffl01 mtoffl01 deleted the mtoff/java-config-sources branch October 8, 2025 18:54
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.

3 participants