Skip to content

Commit 2ab0cc1

Browse files
improvements
1 parent 36d4d77 commit 2ab0cc1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

develop-docs/sdk/telemetry/telemetry-buffer.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ redirect_from:
1212
This document uses key words such as "MUST", "SHOULD", and "MAY" as defined in [RFC 2119](https://www.ietf.org/rfc/rfc2119.txt) to indicate requirement levels.
1313
</Alert>
1414

15-
The telemetry buffer sits between the client and the transport, temporarily storing telemetry data such as spans and logs. Its main goal is to efficiently batch data to reduce the number of outgoing HTTP requests and Sentry envelopes. Without buffering, each span or log would trigger its own request, quickly overwhelming our backends.
15+
The telemetry buffer sits between the client and the transport, temporarily buffering high-volume telemetry data such as spans and logs. The client SHOULD continue to pass low-volume telemetry data, such as events, directly to the transport. The telemetry buffer aims to efficiently batch data to reduce the number of outgoing HTTP requests and Sentry envelopes. Without buffering, each span or log would trigger its own request, quickly overwhelming our backends.
1616

1717
```mermaid
1818
flowchart LR
19-
Client[Client] -->|capture telemetry data| Buffer[TelemetryBuffer]
20-
Buffer -->|send envelope| Transport[Transport]
19+
Client[Client] -->|high-volume telemetry data| Buffer[TelemetryBuffer]
20+
Buffer -->|buffered telemetry data| Transport[Transport]
21+
Client -->|low-volume telemetry data| Transport
2122
```
2223

2324
Because telemetry workloads and platform constraints vary widely, buffer requirements differ across environments. For example, backend SDKs need high throughput and backpressure management to handle large data volumes. Mobile SDKs have lower throughput and don't need to worry much about backpressure, but they do need to minimize data loss in the event of abnormal process termination. Browser and GDX SDKs also have different requirements.

0 commit comments

Comments
 (0)