-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
40 lines (33 loc) · 1.25 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
plugins {
id("otel.javaagent-instrumentation")
}
muzzle {
pass {
group.set("io.opentelemetry")
module.set("opentelemetry-extension-annotations")
versions.set("[0.16.0,)")
skip("0.13.0") // opentelemetry-api has a bad dependency on non-alpha api-metric 0.13.0
assertInverse.set(true)
}
}
val versions: Map<String, String> by project
dependencies {
compileOnly(project(":instrumentation-api-annotation-support"))
compileOnly(project(":javaagent-tooling"))
// this instrumentation needs to do similar shading dance as opentelemetry-api-1.0 because
// the @WithSpan annotation references the OpenTelemetry API's SpanKind class
//
// see the comment in opentelemetry-api-1.0.gradle for more details
compileOnly(project(":opentelemetry-ext-annotations-shaded-for-instrumenting", configuration = "shadow"))
testImplementation("io.opentelemetry:opentelemetry-extension-annotations")
testImplementation(project(":instrumentation-api-annotation-support"))
testImplementation("net.bytebuddy:byte-buddy")
}
tasks {
compileTestJava {
options.compilerArgs.add("-parameters")
}
test {
jvmArgs("-Dotel.instrumentation.opentelemetry-annotations.exclude-methods=io.opentelemetry.test.annotation.TracedWithSpan[ignored]")
}
}