ref(telemetry-processor): Migrate info from backend spec#16637
Open
philipphofmann wants to merge 19 commits intomasterfrom
Open
ref(telemetry-processor): Migrate info from backend spec#16637philipphofmann wants to merge 19 commits intomasterfrom
philipphofmann wants to merge 19 commits intomasterfrom
Conversation
First step of a multi-part refactoring to consolidate duplicate content between the backend and index telemetry processor pages. This PR moves the architecture overview and API definition to the index file and removes the duplicated parts from the backend file. Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
philipphofmann
commented
Mar 3, 2026
Comment on lines
-63
to
-65
| - **Category isolation**: Separate ring buffers for each telemetry type prevent head-of-line blocking. | ||
| - **Weighted scheduling**: High-priority telemetry gets sent more frequently via weighted round-robin selection. | ||
| - **Transport compatibility**: Works with existing HTTP transport implementations without modification. |
Member
Author
There was a problem hiding this comment.
All covered now in the index.mdx
Comment on lines
-22
to
-23
| - Add(item). | ||
| - Flush(timeout). |
Member
Author
There was a problem hiding this comment.
Moved to index.mdx
Comment on lines
-27
to
-58
| ┌────────────────────────────────────────────────────────────────────────────┐ | ||
| │ Client │ | ||
| │ captureEvent / captureTransaction / captureCheckIn / captureLog │ | ||
| └────────────────────────────────────────────────────────────────────────────┘ | ||
|
|
||
| ▼ | ||
| ┌────────────────────────────────────────────────────────────────────────────┐ | ||
| │ TelemetryProcessor │ | ||
| │ Add(item) · Flush(timeout) · Close(timeout) │ | ||
| │ │ | ||
| │ ┌──────────────────────┐ ┌──────────────────────┐ ┌──────────────────┐ │ | ||
| │ │ Error Buffer │ │ Check-in Buffer │ │ Log Buffer │ │ | ||
| │ │ (CRITICAL) │ │ (HIGH) │ │ (LOW) │ │ | ||
| │ │ Timeout: N/A │ │ Timeout: N/A │ │ Timeout: 5s │ │ | ||
| │ │ BatchSize: 1 │ │ BatchSize: 1 │ │ BatchSize: 100 │ │ | ||
| │ └──────────────────────┘ └──────────────────────┘ └──────────────────┘ │ | ||
| │ │ │ | ||
| │ ▼ │ | ||
| │ ┌─────────────────────────────────────────────────────────────────────┐ │ | ||
| │ │ TelemetryScheduler (Weighted Round-Robin) │ │ | ||
| │ │ - Priority weights: CRITICAL=5, HIGH=4, MEDIUM=3, LOW=2, LOWEST=1 │ │ | ||
| │ │ - Processes a batch of items based on BatchSize and/or Timeout │ │ | ||
| │ │ - Builds envelopes from batch │ │ | ||
| │ │ - Submits envelopes to transport │ │ | ||
| │ └─────────────────────────────────────────────────────────────────────┘ │ | ||
| └────────────────────────────────────────────────────────────────────────────┘ | ||
|
|
||
| ▼ | ||
| ┌────────────────────────────────────────────────────────────────────────────┐ | ||
| │ Transport │ | ||
| │ - Single worker, disk cache, offline retry, client reports │ | ||
| └────────────────────────────────────────────────────────────────────────────┘ |
Member
Author
There was a problem hiding this comment.
Redundant with the diagrams in the index.mdx, so I removed it.
| 6. When the size limit is reached, the telemetry buffer **MUST** forward all items to the telemetry scheduler. The buffer **MAY** forward items in batches. | ||
| 7. The telemetry buffer **SHOULD** use separate buffers per telemetry item type (e.g., one for spans, one for logs, one for metrics). | ||
|
|
||
| ## Batch Size Limit |
Member
Author
There was a problem hiding this comment.
I added more detailed here and renamed this to BatchSizeLimit because I removed the batch size info with the backend diagram.
philipphofmann
added a commit
that referenced
this pull request
Mar 3, 2026
…processor Addresses PR feedback from #16637 where Close(timeout) was missing from the minimal API definition. Co-Authored-By: Claude <noreply@anthropic.com>
… API Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
First step of #16189 to consolidate duplicate content between the backend and index telemetry processor pages. This PR moves the architecture overview and API definition to the index file and removes the duplicated parts from the backend file.
IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
Co-Authored-By: Claude noreply@anthropic.com