diff --git a/CHANGELOG.md b/CHANGELOG.md index d89f0ae054..3803bc2a7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## Unreleased + +### Fixes + +- Do not log if `OtelContextScopesStorage` cannot be found ([#4127](https://github.com/getsentry/sentry-java/pull/4127)) + - Previously `java.lang.ClassNotFoundException: io.sentry.opentelemetry.OtelContextScopesStorage` was shown in the log if the class could not be found. + - This is just a lookup the SDK performs to configure itself. The SDK also works without OpenTelemetry. + ## 8.1.0 ### Features diff --git a/sentry/src/main/java/io/sentry/Sentry.java b/sentry/src/main/java/io/sentry/Sentry.java index 70519fb98f..94007e42c5 100644 --- a/sentry/src/main/java/io/sentry/Sentry.java +++ b/sentry/src/main/java/io/sentry/Sentry.java @@ -395,7 +395,7 @@ private static void initScopesStorage(SentryOptions options) { if (SentryOpenTelemetryMode.OFF == options.getOpenTelemetryMode()) { scopesStorage = new DefaultScopesStorage(); } else { - scopesStorage = ScopesStorageFactory.create(new LoadClass(), options.getLogger()); + scopesStorage = ScopesStorageFactory.create(new LoadClass(), NoOpLogger.getInstance()); } }