sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Detect async servlet mode and noop

Open adinauer opened this issue 3 months ago • 2 comments

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/

adinauer avatar Oct 14 '25 13:10 adinauer

JAVA-207

linear[bot] avatar Oct 14 '25 13:10 linear[bot]

Problems were reported in https://github.com/getsentry/sentry-java/issues/4798 and https://github.com/getsentry/sentry-java/issues/3568

adinauer avatar Oct 14 '25 13:10 adinauer