Skip to content

Commit c2cf275

Browse files
committed
add enabled
1 parent 7b973c3 commit c2cf275

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/InferredSpansConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ private InferredSpansConfig() {}
5656
PARENT_OVERRIDE_HANDLER_OPTION));
5757

5858
static SpanProcessor createSpanProcessor(ConfigProperties properties) {
59-
InferredSpansProcessorBuilder builder = InferredSpansProcessor.builder();
59+
InferredSpansProcessorBuilder builder = InferredSpansProcessor.builder().profilerEnabled(true);
6060

6161
PropertiesApplier applier = new PropertiesApplier(properties);
6262

63-
applier.applyBool(ENABLED_OPTION, builder::profilerEnabled);
6463
applier.applyBool(LOGGING_OPTION, builder::profilerLoggingEnabled);
6564
applier.applyBool(DIAGNOSTIC_FILES_OPTION, builder::backupDiagnosticFiles);
6665
applier.applyInt(SAFEMODE_OPTION, builder::asyncProfilerSafeMode);

0 commit comments

Comments
 (0)