Skip to content

Commit b586bc2

Browse files
authored
Fix dropwizard-views configuration (#14475)
1 parent 8f5360c commit b586bc2

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
### Migration notes
6+
7+
- The configuration option used to enable traces generated by the `dropwizard-views` instrumentation has changed from `otel.instrumentation.common.experimental.controller-telemetry.enabled` to `otel.instrumentation.common.experimental.view-telemetry.enabled`
8+
([#14475](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14475))
9+
510
## Version 2.19.0 (2025-08-17)
611

712
### 📈 Enhancements

docs/instrumentation-list.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,10 +2269,6 @@ libraries:
22692269
description: Enables the creation of experimental view (INTERNAL) spans.
22702270
type: boolean
22712271
default: false
2272-
- name: otel.instrumentation.common.experimental.controller-telemetry.enabled
2273-
description: Enables the creation of experimental controller (INTERNAL) spans.
2274-
type: boolean
2275-
default: false
22762272
elasticsearch:
22772273
- name: elasticsearch-api-client-7.16
22782274
description: This instrumentation enables client spans for Elasticsearch API client

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ dependencies {
1818
}
1919

2020
tasks.withType<Test>().configureEach {
21-
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
21+
jvmArgs("-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true")
2222
}

instrumentation/dropwizard/dropwizard-views-0.7/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/dropwizardviews/DropwizardSingletons.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public final class DropwizardSingletons {
1717
private static final Instrumenter<View, Void> INSTRUMENTER =
1818
Instrumenter.<View, Void>builder(
1919
GlobalOpenTelemetry.get(), INSTRUMENTATION_NAME, DropwizardSingletons::spanName)
20-
.setEnabled(ExperimentalConfig.get().controllerTelemetryEnabled())
20+
.setEnabled(ExperimentalConfig.get().viewTelemetryEnabled())
2121
.buildInstrumenter();
2222

2323
private static String spanName(View view) {

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ configurations:
33
description: Enables the creation of experimental view (INTERNAL) spans.
44
type: boolean
55
default: false
6-
- name: otel.instrumentation.common.experimental.controller-telemetry.enabled
7-
description: Enables the creation of experimental controller (INTERNAL) spans.
8-
type: boolean
9-
default: false

0 commit comments

Comments
 (0)