Skip to content

Commit c3dcfc8

Browse files
committed
fix
1 parent 62903e5 commit c3dcfc8

File tree

1 file changed

+4
-7
lines changed
  • instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal

1 file changed

+4
-7
lines changed

instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/EarlyConfig.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,10 @@ public static String translatePropertyName(Environment environment, String name)
6969
public static boolean isInstrumentationEnabled(
7070
Environment environment, String name, boolean defaultValue) {
7171
String property =
72-
environment.getProperty(
73-
String.format(
74-
getPropertyName(
75-
environment,
76-
"otel.instrumentation.%s.enabled",
77-
"otel.instrumentation/development.java.%s.enabled")),
78-
name);
72+
getPropertyName(
73+
environment,
74+
String.format("otel.instrumentation.%s.enabled", name),
75+
String.format("otel.instrumentation/development.java.%s.enabled", name));
7976
Boolean explicit = environment.getProperty(property, Boolean.class);
8077
if (explicit != null) {
8178
return explicit;

0 commit comments

Comments
 (0)