Skip to content

Commit 22fc85b

Browse files
author
Anuraag Agrawal
committed
Temporarily inject xray propagator into system classloader to support aws sdk instrumentation
1 parent 9a3e2dc commit 22fc85b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

awsagentprovider/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ dependencies {
2828
compileOnly("org.slf4j:slf4j-api")
2929

3030
implementation("io.opentelemetry:opentelemetry-sdk-extension-aws")
31+
implementation("io.opentelemetry:opentelemetry-extension-trace-propagators")
3132

3233
testImplementation("com.google.guava:guava")
3334

otelagent/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ tasks {
4242
into("inst")
4343
rename("(^.*)\\.class$", "$1.classdata")
4444
}
45+
// Temporarily include AwsXrayPropagator in bootstrap classloader to resolve issue with
46+
// agent injection of extension modules.
47+
from(zipTree(providerArchive)) {
48+
include("io/opentelemetry/extension/trace/propagation/AwsXRayPropagator.class")
49+
}
4550
dependsOn(agentProviderShadowJarTask)
4651
}
4752

0 commit comments

Comments
 (0)