sentry-java
sentry-java copied to clipboard
Detect async servlet mode and noop
Problem Statement
The SDK is leaking memory (through scopes) if servlets are used in async mode.
Solution Brainstorm
Detect that servlets are used in async mode and noop in SentryServletRequestListener. Possibly suggest using our OTel integration: https://docs.sentry.io/platforms/java/guides/servlet/opentelemetry/
Problems were reported in https://github.com/getsentry/sentry-java/issues/4798 and https://github.com/getsentry/sentry-java/issues/3568