Open
Description
Problem Statement
In Sentry-Java, it doesn’t seem possible to configure HTTP keep-alive. When the SDK sends data to the collector, it explicitly sets the Connection: close header (source).
Because of this forced behavior, the SDK establishes a new connection for every request, which could introduce unnecessary overhead under high load.
Is there a specific reason why keep alive is disabled? The code that disables it seems to be written at least four years ago.
Other Sentry SDKs — like the one for Python — provide options to enable keep-alive (docs).
Solution Brainstorm
- Introduce keep alive option to Sentry-java.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Needs Discussion
Status
No status