Skip to content

Commit a7fc214

Browse files
authored
Dropwizard views metadata (#14472)
1 parent b586bc2 commit a7fc214

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

docs/instrumentation-list.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,6 +2258,8 @@ libraries:
22582258
type: boolean
22592259
default: false
22602260
- name: dropwizard-views-0.7
2261+
description: This instrumentation enables the creation of spans for Dropwizard
2262+
views.
22612263
source_path: instrumentation/dropwizard/dropwizard-views-0.7
22622264
scope:
22632265
name: io.opentelemetry.dropwizard-views-0.7
@@ -2269,6 +2271,11 @@ libraries:
22692271
description: Enables the creation of experimental view (INTERNAL) spans.
22702272
type: boolean
22712273
default: false
2274+
telemetry:
2275+
- when: otel.instrumentation.common.experimental.view-telemetry.enabled=true
2276+
spans:
2277+
- span_kind: INTERNAL
2278+
attributes: []
22722279
elasticsearch:
22732280
- name: elasticsearch-api-client-7.16
22742281
description: This instrumentation enables client spans for Elasticsearch API client

instrumentation-docs/instrumentations.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ readonly INSTRUMENTATIONS=(
130130
"couchbase:couchbase-2.6:javaagent:test"
131131
"couchbase:couchbase-2.6:javaagent:testStableSemconv"
132132
"couchbase:couchbase-2.6:javaagent:testExperimental"
133+
"dropwizard:dropwizard-views-0.7:javaagent:test"
133134
)
134135

135136
# Some instrumentation test suites don't run ARM, so we use colima to run them in an x86_64

instrumentation/dropwizard/dropwizard-views-0.7/javaagent/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ dependencies {
1919

2020
tasks.withType<Test>().configureEach {
2121
jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")
22+
23+
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
24+
systemProperty("metadataConfig", "otel.instrumentation.common.experimental.view-telemetry.enabled=true")
2225
}

instrumentation/dropwizard/dropwizard-views-0.7/metadata.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
description: This instrumentation enables the creation of spans for Dropwizard views.
12
configurations:
23
- name: otel.instrumentation.common.experimental.view-telemetry.enabled
34
description: Enables the creation of experimental view (INTERNAL) spans.

0 commit comments

Comments
 (0)