Skip to content

Commit 9223dce

Browse files
author
Mateusz Rzeszutek
committed
Code review comments
1 parent 9491a75 commit 9223dce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom/src/main/java/com/splunk/opentelemetry/InstrumentationLibraryTracerCustomizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private static boolean spanProcessorInstrumentationLibraryEnabled() {
3636
if (value == null) {
3737
value = System.getenv(propertyToEnv(PROPERTY_SPAN_PROCESSOR_INSTR_LIB_ENABLED));
3838
}
39-
return ("true".equalsIgnoreCase(value));
39+
return Boolean.parseBoolean(value);
4040
}
4141

4242
private static boolean jdbcSpanLowCardinalityNameEnabled() {
@@ -45,7 +45,7 @@ private static boolean jdbcSpanLowCardinalityNameEnabled() {
4545
value = System.getenv(propertyToEnv(ENABLE_JDBC_SPAN_LOW_CARDINALITY_NAME_PROPERTY));
4646
}
4747
// enabled by default
48-
return value == null || "true".equalsIgnoreCase(value);
48+
return value == null || Boolean.parseBoolean(value);
4949
}
5050

5151
@Override

0 commit comments

Comments
 (0)