Skip to content

Commit c5c769d

Browse files
committed
Do not log if OtelContextScopesStorage cannot be found
1 parent 1218739 commit c5c769d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry/src/main/java/io/sentry/Sentry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ private static void initScopesStorage(SentryOptions options) {
395395
if (SentryOpenTelemetryMode.OFF == options.getOpenTelemetryMode()) {
396396
scopesStorage = new DefaultScopesStorage();
397397
} else {
398-
scopesStorage = ScopesStorageFactory.create(new LoadClass(), options.getLogger());
398+
scopesStorage = ScopesStorageFactory.create(new LoadClass(), NoOpLogger.getInstance());
399399
}
400400
}
401401

0 commit comments

Comments
 (0)