Skip to content

Commit 90ffe39

Browse files
committed
pr review
1 parent 8a4762a commit 90ffe39

File tree

4 files changed

+8
-64
lines changed

4 files changed

+8
-64
lines changed

instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/DeprecatedConfigProperties.java

Lines changed: 0 additions & 44 deletions
This file was deleted.

instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/InstrumenterBuilder.java

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,6 @@ SpanSuppressor buildSpanSuppressor() {
393393

394394
@Nullable
395395
private String getSpanSuppressionStrategy() {
396-
String key = "otel.instrumentation.common.experimental.span-suppression-strategy";
397-
String deprecatedKey = "otel.instrumentation.experimental.span-suppression-strategy";
398396
// we cannot use DeclarativeConfigUtil here because it's not available in instrumentation-api
399397
if (maybeDeclarativeConfig(openTelemetry)) {
400398
DeclarativeConfigProperties instrumentationConfig =
@@ -403,22 +401,13 @@ private String getSpanSuppressionStrategy() {
403401
return null;
404402
}
405403

406-
return DeprecatedConfigProperties.warnIfUsed(
407-
deprecatedKey,
408-
instrumentationConfig
409-
.getStructured("java", empty())
410-
.getString("span_suppression_strategy/development"),
411-
key,
412-
instrumentationConfig
413-
.getStructured("java", empty())
414-
.getStructured("common", empty())
415-
.getString("span_suppression_strategy/development"));
404+
return instrumentationConfig
405+
.getStructured("java", empty())
406+
.getStructured("common", empty())
407+
.getString("span_suppression_strategy/development");
416408
} else {
417-
return DeprecatedConfigProperties.warnIfUsed(
418-
deprecatedKey,
419-
ConfigPropertiesUtil.getString(deprecatedKey),
420-
key,
421-
ConfigPropertiesUtil.getString(key));
409+
return ConfigPropertiesUtil.getString(
410+
"otel.instrumentation.experimental.span-suppression-strategy");
422411
}
423412
}
424413

instrumentation/camel-2.20/javaagent/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ tasks {
7474
jvmArgs("-Dotel.instrumentation.aws-sdk.experimental-span-attributes=true")
7575

7676
// TODO: fix camel instrumentation so that it uses semantic attributes extractors
77-
jvmArgs("-Dotel.instrumentation.common.experimental.span-suppression-strategy=span-kind")
77+
jvmArgs("-Dotel.instrumentation.experimental.span-suppression-strategy=span-kind")
7878

7979
// required on jdk17
8080
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")

javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AgentInstaller.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ private static void installEarlyInstrumentation(
292292
}
293293

294294
private static void copyNecessaryConfigToSystemProperties(ConfigProperties config) {
295-
for (String property :
296-
asList("otel.instrumentation.common.experimental.span-suppression-strategy")) {
295+
for (String property : asList("otel.instrumentation.experimental.span-suppression-strategy")) {
297296
String value = config.getString(property);
298297
if (value != null) {
299298
System.setProperty(property, value);

0 commit comments

Comments
 (0)