Skip to content

Commit

Permalink
Use same approach as agent-tooling to setup otel-tooling instrumentPl…
Browse files Browse the repository at this point in the history
…uginClasspath (#7096)
  • Loading branch information
mcculls committed May 30, 2024
1 parent 4b5cad9 commit 3b1f6d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dd-java-agent/agent-otel/otel-bootstrap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {

implementation project(':dd-java-agent:agent-otel:otel-shim')

instrumentPluginClasspath project(':dd-java-agent:agent-otel:otel-tooling')
instrumentPluginClasspath project(path: ':dd-java-agent:agent-otel:otel-tooling', configuration: 'instrumentPluginClasspath')
}

// unpack embeddedClasspath to same path as compiled classes so it can get instrumented
Expand Down
8 changes: 8 additions & 0 deletions dd-java-agent/agent-otel/otel-tooling/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ apply from: "$rootDir/gradle/java.gradle"
minimumInstructionCoverage = 0.0
minimumBranchCoverage = 0.0

configurations {
instrumentPluginClasspath {
canBeConsumed = true
canBeResolved = false
extendsFrom runtimeElements
}
}

dependencies {
api deps.bytebuddy
api deps.bytebuddyagent
Expand Down

0 comments on commit 3b1f6d2

Please sign in to comment.