Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,090 changes: 1,086 additions & 4 deletions docs/instrumentation-list.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions instrumentation-docs/instrumentations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ readonly INSTRUMENTATIONS=(
# container.
# shellcheck disable=SC2034
readonly COLIMA_INSTRUMENTATIONS=(
"spring:spring-jms:spring-jms-6.0:javaagent:test"
"elasticsearch:elasticsearch-rest-6.4:javaagent:test"
"elasticsearch:elasticsearch-rest-5.0:javaagent:test"
"oracle-ucp-11.2:javaagent:test"
Expand Down
13 changes: 1 addition & 12 deletions instrumentation-docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Run the analysis to update the instrumentation-list.yaml:

Until this process is ready for all instrumentations, each module will be modified to include a
system property feature flag configured for when the tests run. By enabling the following flag you
will enable metric collection:
will enable metric and span collection:

```kotlin
tasks {
Expand All @@ -23,17 +23,6 @@ tasks {
}
```

In order to collect spans, add the `collectSpans` property (along with `collectMetadata`):

```kotlin
tasks {
test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
```

Sometimes instrumentation will behave differently based on configuration options, and we can
differentiate between these configurations by using the `metaDataConfig` system property. When the
telemetry is written to a file, the value of this property will be included, or it will default to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ otelJava {
tasks {
test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ tasks {

systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

check {
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/apache-dbcp-2.0/javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ tasks {

systemProperty("collectMetadata", collectMetadata)
systemProperty("metaDataConfig", "otel.semconv-stability.opt-in=database")
systemProperty("collectSpans", true)
}

test {
systemProperty("collectMetadata", collectMetadata)
systemProperty("collectSpans", true)
}

check {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ tasks.withType<Test>().configureEach {
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ dependencies {
tasks {
test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ tasks {
withType<Test>().configureEach {
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,5 @@ dependencies {
tasks {
test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ dependencies {
tasks {
test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ tasks {

test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ dependencies {
tasks {
test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ tasks.withType<Test>().configureEach {

systemProperty("metaDataConfig", "otel.instrumentation.apache-shenyu.experimental-span-attributes=true")
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)

// required on jdk17
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ tasks {
withType<Test>().configureEach {
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ afterEvaluate {

tasks.test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ tasks {
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ tasks.withType<Test>().configureEach {
}

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

// async-http-client 2.0.0 does not work with Netty versions newer than this due to referencing an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ tasks {
test {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
systemProperty("collectMetadata", collectMetadata)
systemProperty("collectSpans", true)
}

val testStableSemconv by registering(Test::class) {
jvmArgs("-Dotel.semconv-stability.opt-in=database")

systemProperty("metaDataConfig", "otel.semconv-stability.opt-in=database")
systemProperty("collectMetadata", collectMetadata)
systemProperty("collectSpans", true)
}

check {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ tasks {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

val testStableSemconv by registering(Test::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,5 @@ tasks {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@ tasks {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@ tasks {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ tasks {
jvmArgs("--add-opens=java.base/java.nio=ALL-UNNAMED")
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

val testStableSemconv by registering(Test::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ tasks {
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

val testStableSemconv by registering(Test::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ tasks {
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

val testSuites = testing.suites.withType(JvmTestSuite::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tasks {
jvmArgs("-Dotel.instrumentation.http.client.emit-experimental-telemetry=true")
jvmArgs("-Dotel.instrumentation.http.server.emit-experimental-telemetry=true")
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)

systemProperty("metaDataConfig", "otel.instrumentation.http.client.emit-experimental-telemetry=true,otel.instrumentation.http.server.emit-experimental-telemetry=true")
}
}
1 change: 0 additions & 1 deletion instrumentation/finatra-2.9/javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,5 @@ tasks {
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ tasks {

systemProperty("otel.instrumentation.genai.capture-message-content", "true")
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ tasks {
}

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
systemProperty("metaDataConfig", "otel.instrumentation.spring-batch.experimental-span-attributes=true")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,5 @@ if (findProperty("testLatestDeps") as Boolean) {
tasks {
test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ tasks {
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

val testStableSemconv by registering(Test::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ tasks {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ tasks {
withType<Test>().configureEach {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
// this does not apply to testReceiveSpansDisabled
test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ tasks {
withType<Test>().configureEach {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

val testReceiveSpansDisabled by registering(Test::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ testing {
jvmArgs("-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=false")

systemProperty("collectMetadata", collectMetadata)
systemProperty("collectSpans", true)
}
}
}
Expand All @@ -75,7 +74,6 @@ tasks {

systemProperty("metaDataConfig", "otel.instrumentation.kafka.experimental-span-attributes=true")
systemProperty("collectMetadata", collectMetadata)
systemProperty("collectSpans", true)
}

check {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ tasks {
jvmArgs("-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true")

systemProperty("collectMetadata", collectMetadata)
systemProperty("collectSpans", true)
}

check {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ tasks {
test {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ otelJava {
tasks.withType<Test>().configureEach {
jvmArgs("-Djava.rmi.server.hostname=127.0.0.1")
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

configurations.testRuntimeClasspath {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ tasks {
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

val testExperimental by registering(Test::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ otelJava {
tasks.test {
systemProperty("metaDataConfig", "otel.instrumentation.common.enduser.id.enabled=true,otel.instrumentation.common.enduser.role.enabled=true,otel.instrumentation.common.enduser.scope.enabled=true")
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ if (latestDepTest) {
tasks {
test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ tasks.withType<Test>().configureEach {
systemProperty("metaDataConfig", "otel.instrumentation.common.experimental.controller-telemetry.enabled")
systemProperty("testLatestDeps", latestDepTest)
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}

if (latestDepTest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@ if (!latestDepTest) {
tasks {
test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ tasks {
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)

jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ configurations.testRuntimeClasspath {
tasks {
test {
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ tasks {
jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")

systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("collectSpans", true)

systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private <T extends Consumer<TraceAssert>> void doAssertTraces(
}
TracesAssert.assertThat(traces).hasTracesSatisfyingExactly(assertionsList);

if (Boolean.getBoolean("collectMetadata") && Boolean.getBoolean("collectSpans")) {
if (Boolean.getBoolean("collectMetadata")) {
collectEmittedSpans(traces);
}
}
Expand Down
Loading