16 lines
631 B
Groovy
16 lines
631 B
Groovy
apply from: "$rootDir/gradle/instrumentation.gradle"
|
|
|
|
dependencies {
|
|
// this instrumentation needs to do similar shading dance as opentelemetry-api-1.0 because
|
|
// the @WithSpan annotation references the OpenTelemetry API's Span.Kind class
|
|
//
|
|
// see the comment in opentelemetry-api-1.0.gradle for more details
|
|
compileOnly project(path: ':opentelemetry-ext-annotations-shaded-for-instrumenting', configuration: 'shadow')
|
|
|
|
testImplementation deps.opentelemetryExtAnnotations
|
|
}
|
|
|
|
test {
|
|
jvmArgs "-Dotel.instrumentation.opentelemetry-annotations.exclude-methods=io.opentelemetry.test.annotation.TracedWithSpan[ignored]"
|
|
}
|