getsentry / getsentry/sentry-java

Detect async servlet mode and noop

Open
#4,807 2 comments 0 reactions 0 assignees View on GitHub
Feature Java
Dominant language
Kotlin
Stars
1.4k
Forks
478
Avg merge
2d 23h
Merged PRs (30d)
67

Description

### 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/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.