Skip to content

Commit 1d73f76

Browse files
committed
adding fallback as false for boolean jmx config
1 parent b07f361 commit 1d73f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/OtelJMXMetricsCustomizerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void customize(AutoConfigurationCustomizer autoConfiguration) {
5252
}
5353

5454
private boolean isOtelJMXEnabled(ConfigProperties configProps) {
55-
return configProps.getBoolean(OTEL_JMX_ENABLED_CONFIG)
55+
return configProps.getBoolean(OTEL_JMX_ENABLED_CONFIG, false)
5656
&& configProps.getString(OTEL_JMX_ENDPOINT_CONFIG, "") != "";
5757
}
5858

0 commit comments

Comments
 (0)