Sentry SDK HTTP connection pool default limits and exhaustion behavior
0 reputation · 09 Apr 2024, 19:54 UTC
Goal
Determine the default HTTP connection pool size used by the major Sentry SDKs and the documented behavior when that pool is exhausted.
Constraints
- Pool configuration is SDK‑specific (e.g., OkHttp for Java, urllib3 for Python, Netty for JavaScript) and not centrally managed.
- SDK documentation lists tuning parameters but does not expose built‑in metrics for pool saturation.
- Observed behavior varies: some transports queue indefinitely, others drop events after an undocumented timeout.
Open questions
- What is the default connection pool size for the sentry‑python SDK's urllib3 transport?
- Does the sentry‑java SDK's OkHttp transport queue requests indefinitely or discard events after a specific timeout when the pool is full?
- Are there any version‑dependent timeout values that control event discard on pool saturation across SDKs?