Skip to content

Commit 1e3953d

Browse files
Luca Forstnervivianyentran
andauthored
Add some information about hosting environment overhead (#7774)
Co-authored-by: vivianyentran <[email protected]>
1 parent cf1a47d commit 1e3953d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/docs/product/performance/performance-overhead.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ Each SDK has limits on the data structures used to record all the above data. If
3232
### Backpressure Management
3333

3434
The Python SDK, starting with version `1.30.0`, manages backpressure internally by reducing the dynamic sampling rate when the system is in an unhealthy state. This ensures better system stability and lower SDK overhead under heavy load. We will gradually roll this out to other backend languages in the future.
35+
36+
### Hosting Environment
37+
38+
Some hosting environments have mechanisms in place that negatively influence SDK overhead:
39+
40+
- AWS Lambdas completely freeze any code execution when a response is sent. This means that the SDKs generally will block the response from being finished until it has flushed all of the recorded telemetry data to Sentry. This might cause non-trivial overhead in some situations. Here, it might be beneficial to run a Sentry Relay instance physically close to your lambdas to decrease latency.
41+
- SDKs that are designed to run on the Vercel Edge Runtime will stall responses to requests until the SDK has flushed all of the telemetry for that request to Sentry. This is a limitation imposed by the Edge Runtime, since it doesn't allow for I/O operations to be shared or persisted across request handler invocations, meaning the SDK cannot flush its data asynchronously.

0 commit comments

Comments
 (0)