Skip to content

Commit 3f68ad5

Browse files
committed
Dropwizard views metadata
1 parent fe9595c commit 3f68ad5

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

docs/instrumentation-list.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,21 +2258,24 @@ 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
22642266
target_versions:
22652267
javaagent:
22662268
- io.dropwizard:dropwizard-views:(,3.0.0)
22672269
configurations:
2268-
- name: otel.instrumentation.common.experimental.view-telemetry.enabled
2269-
description: Enables the creation of experimental view (INTERNAL) spans.
2270-
type: boolean
2271-
default: false
22722270
- name: otel.instrumentation.common.experimental.controller-telemetry.enabled
22732271
description: Enables the creation of experimental controller (INTERNAL) spans.
22742272
type: boolean
22752273
default: false
2274+
telemetry:
2275+
- when: otel.instrumentation.common.experimental.controller-telemetry.enabled=true
2276+
spans:
2277+
- span_kind: INTERNAL
2278+
attributes: []
22762279
elasticsearch:
22772280
- name: elasticsearch-api-client-7.16
22782281
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.controller-telemetry.enabled=true")
22+
23+
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
24+
systemProperty("metadataConfig", "otel.instrumentation.common.experimental.controller-telemetry.enabled=true")
2225
}

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1+
description: This instrumentation enables the creation of spans for Dropwizard views.
12
configurations:
2-
- name: otel.instrumentation.common.experimental.view-telemetry.enabled
3-
description: Enables the creation of experimental view (INTERNAL) spans.
4-
type: boolean
5-
default: false
63
- name: otel.instrumentation.common.experimental.controller-telemetry.enabled
74
description: Enables the creation of experimental controller (INTERNAL) spans.
85
type: boolean

0 commit comments

Comments
 (0)