Dropwizard views metadata (#14472)

This commit is contained in:
Jay DeLuca 2025-08-20 14:35:46 -04:00 committed by GitHub
parent b586bc2d09
commit a7fc2147da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 0 deletions

View File

@ -2258,6 +2258,8 @@ libraries:
type: boolean
default: false
- name: dropwizard-views-0.7
description: This instrumentation enables the creation of spans for Dropwizard
views.
source_path: instrumentation/dropwizard/dropwizard-views-0.7
scope:
name: io.opentelemetry.dropwizard-views-0.7
@ -2269,6 +2271,11 @@ libraries:
description: Enables the creation of experimental view (INTERNAL) spans.
type: boolean
default: false
telemetry:
- when: otel.instrumentation.common.experimental.view-telemetry.enabled=true
spans:
- span_kind: INTERNAL
attributes: []
elasticsearch:
- name: elasticsearch-api-client-7.16
description: This instrumentation enables client spans for Elasticsearch API client

View File

@ -130,6 +130,7 @@ readonly INSTRUMENTATIONS=(
"couchbase:couchbase-2.6:javaagent:test"
"couchbase:couchbase-2.6:javaagent:testStableSemconv"
"couchbase:couchbase-2.6:javaagent:testExperimental"
"dropwizard:dropwizard-views-0.7:javaagent:test"
)
# Some instrumentation test suites don't run ARM, so we use colima to run them in an x86_64

View File

@ -19,4 +19,7 @@ dependencies {
tasks.withType<Test>().configureEach {
jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
systemProperty("metadataConfig", "otel.instrumentation.common.experimental.view-telemetry.enabled=true")
}

View File

@ -1,3 +1,4 @@
description: This instrumentation enables the creation of spans for Dropwizard views.
configurations:
- name: otel.instrumentation.common.experimental.view-telemetry.enabled
description: Enables the creation of experimental view (INTERNAL) spans.