Skip to content

ref(spans): clean up enforce-segment-size option#114593

Merged
lvthanh03 merged 1 commit intomasterfrom
tony/cleanup-enforce-segment-size
May 4, 2026
Merged

ref(spans): clean up enforce-segment-size option#114593
lvthanh03 merged 1 commit intomasterfrom
tony/cleanup-enforce-segment-size

Conversation

@lvthanh03
Copy link
Copy Markdown
Member

We have rolled out the flag in all regions and the spans buffer is stable. We can start cleaning up the flag and default to the new enforce max-segment-bytes subsegment detaching behaviour in the Lua script.

@lvthanh03 lvthanh03 requested review from a team as code owners May 1, 2026 18:23
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 1, 2026
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit dadc98a. Configure here.

root_timeout = options.get("spans.buffer.root-timeout")
max_spans_per_evalsha = options.get("spans.buffer.max-spans-per-evalsha")
max_segment_bytes = options.get("spans.buffer.max-segment-bytes")
enforce_segment_size = options.get("spans.buffer.enforce-segment-size")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused option registration left behind during cleanup

Low Severity

This PR removes all reads of the spans.buffer.enforce-segment-size option from buffer.py and tests, but the option is still registered in src/sentry/options/defaults.py (line 3236). Since the cleanup is the explicit goal of this PR, the registration and its comment in defaults.py are now dead code and could be removed alongside these changes.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit dadc98a. Configure here.

@lvthanh03 lvthanh03 merged commit ef76888 into master May 4, 2026
60 checks passed
@lvthanh03 lvthanh03 deleted the tony/cleanup-enforce-segment-size branch May 4, 2026 14:26
cleptric pushed a commit that referenced this pull request May 5, 2026
We have rolled out the flag in all regions and the spans buffer is
stable. We can start cleaning up the flag and default to the new enforce
max-segment-bytes subsegment detaching behaviour in the Lua script.
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.

2 participants