diff --git a/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracer.java b/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracer.java index cd8c7ca2471..7b74c035e82 100644 --- a/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracer.java +++ b/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracer.java @@ -19,7 +19,10 @@ final class SdkTracer implements ExtendedTracer { private final TracerSharedState sharedState; private final InstrumentationScopeInfo instrumentationScopeInfo; - private final boolean tracerEnabled; + + // TODO: add dedicated API for updating scope config. + @SuppressWarnings("FieldCanBeFinal") // For now, allow updating reflectively. + private boolean tracerEnabled; SdkTracer( TracerSharedState sharedState,