Add configuration for custom base URL and auth headers for Java#25
Merged
Conversation
daniel-mohedano
marked this pull request as ready for review
May 12, 2026 06:33
anmarchenko
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
DD_SET_TRACER_REPOSITORY_URL_JAVA: (optional) Base URL of a Maven repository (or proxy/mirror) used to download the Java tracer JAR and its.sha256. The path under the base must follow the standard Maven layout forcom.datadoghq:dd-java-agent(i.e.<base>/<version>/dd-java-agent-<version>.jar, plus<base>/maven-metadata.xmlwhenDD_SET_TRACER_VERSION_JAVAis not pinned). Trailing slashes are tolerated. Defaults tohttps://repo1.maven.org/maven2/com/datadoghq/dd-java-agent.DD_SET_AUTH_HEADER_JAVA: (optional) HTTP header used to authenticate againstDD_SET_TRACER_REPOSITORY_URL_JAVA, provided as a completeName: Valuestring (e.g.Authorization: Bearer <token>). Passed verbatim tocurl -H/wget --headeron every Java tracer download. RequiresDD_SET_TRACER_REPOSITORY_URL_JAVAto be set to a custom repository URL. Redirects are not followed when this option is set, to avoid forwarding credentials to another location; configureDD_SET_TRACER_REPOSITORY_URL_JAVAas the final repository URL.These two changes allow customers to download the tracer from a local repository or custom proxy/mirror to avoid hitting rate limits from Maven central. When not set, the behavior defaults to the old one.
Motivation
Additional Notes
Possible Drawbacks / Trade-offs
Describe how to test/QA your changes