Skip to content

Commit

Permalink
Update javaagent-tooling/src/main/java/io/opentelemetry/javaagent/too…
Browse files Browse the repository at this point in the history
…ling/ExtensionClassLoader.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
  • Loading branch information
laurit and trask authored Oct 20, 2023
1 parent 2378eda commit 7b95e25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private static void addFileUrl(List<URL> result, File file) {
try {
// skip shading extension classes if opentelemetry-api is not shaded (happens when using
// disableShadowRelocate=true)
if (Context.class.getName().contains("shaded")) {
if (Context.class.getName().contains(".shaded.")) {
URL wrappedUrl = new URL("otel", null, -1, "/", new RemappingUrlStreamHandler(file));
result.add(wrappedUrl);
} else {
Expand Down

0 comments on commit 7b95e25

Please sign in to comment.