We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e763b2 commit 575c38dCopy full SHA for 575c38d
sdk/logs/src/main/java/io/opentelemetry/sdk/logs/SdkLogger.java
@@ -33,9 +33,7 @@ class SdkLogger implements Logger {
33
private final LoggerSharedState loggerSharedState;
34
private final InstrumentationScopeInfo instrumentationScopeInfo;
35
36
- // deliberately not volatile because of performance concerns
37
- // - which means its eventually consistent
38
- protected boolean loggerEnabled;
+ protected volatile boolean loggerEnabled;
39
40
SdkLogger(
41
LoggerSharedState loggerSharedState,
0 commit comments