Skip to content

feat(spans): enforce max segment bytes during ingestion#112561

Draft
lvthanh03 wants to merge 1 commit intomasterfrom
tony/bound-segments
Draft

feat(spans): enforce max segment bytes during ingestion#112561
lvthanh03 wants to merge 1 commit intomasterfrom
tony/bound-segments

Conversation

@lvthanh03
Copy link
Copy Markdown
Member

  • Adds the spans.buffer.enforce-segment-size option to force segment size limit of max-segment-bytes.
  • When the option is enabled:
    • The Lua script checks cumulative ingested bytes of the target set to decide whether to merge or not.
    • Writes each subsegment's payloads to a separate key determined by a random salt. This is to prevent dropping overflow subsegments when we decide not to merge them into the target set. Each subsegment not being merged will become its own separate segment, and we add a new key in the queue based on the salt value above.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant