-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2245 from DataDog/mcculls/avoidBootstrapPrefixInj…
…ection Move Constants#BOOTSTRAP_PACKAGE_PREFIXES to bootstrap so we can avoid bootstrap injection in ClassloadingInstrumentation
- Loading branch information
Showing
8 changed files
with
35 additions
and
80 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/Constants.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package datadog.trace.bootstrap; | ||
|
||
/** | ||
* Some useful constants. | ||
* | ||
* <p>The idea here is to keep this class safe to inject into client's class loader. | ||
*/ | ||
public final class Constants { | ||
|
||
/** | ||
* packages which will be loaded on the bootstrap classloader | ||
* | ||
* <p>Updates should be mirrored in | ||
* datadog.trace.agent.test.SpockRunner#BOOTSTRAP_PACKAGE_PREFIXES_COPY | ||
*/ | ||
public static final String[] BOOTSTRAP_PACKAGE_PREFIXES = { | ||
"datadog.slf4j", | ||
"datadog.trace.api", | ||
"datadog.trace.bootstrap", | ||
"datadog.trace.context", | ||
"datadog.trace.instrumentation.api", | ||
"datadog.trace.logging", | ||
"datadog.trace.util", | ||
}; | ||
|
||
private Constants() {} | ||
} |
54 changes: 0 additions & 54 deletions
54
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/Constants.java
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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