Skip to content

feat(spans): Add separate Redis cluster setting for span deduplication#116010

Merged
untitaker merged 3 commits into
masterfrom
markusunterwaditzer/stream-1028-separate-span-dedupe-keys
May 21, 2026
Merged

feat(spans): Add separate Redis cluster setting for span deduplication#116010
untitaker merged 3 commits into
masterfrom
markusunterwaditzer/stream-1028-separate-span-dedupe-keys

Conversation

@untitaker
Copy link
Copy Markdown
Member

Summary

  • Add SENTRY_SPAN_DEDUPE_CLUSTER setting to allow span deduplication keys to be configured independently from the main span buffer cluster
  • Defaults to SENTRY_SPAN_BUFFER_CLUSTER if not explicitly set, maintaining backwards compatibility
  • Enables better resource isolation for dedupe operations in the process_segments consumer

Note: Flush locks remain on SENTRY_SPAN_BUFFER_CLUSTER because add-buffer.lua checks lock existence atomically during span ingestion.

ref STREAM-1028

Add SENTRY_SPAN_DEDUPE_CLUSTER to allow span deduplication keys to be
configured independently from the main span buffer cluster. This enables
better resource isolation for dedupe operations.

The setting defaults to SENTRY_SPAN_BUFFER_CLUSTER if not explicitly set,
maintaining backwards compatibility.

ref STREAM-1028
@untitaker untitaker requested review from a team as code owners May 21, 2026 15:50
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 21, 2026

STREAM-1028

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 21, 2026
The RedisCluster type is not subscriptable at runtime in the installed
version, so we need PEP 563 deferred evaluation.

ref STREAM-1028
@untitaker untitaker merged commit 7880145 into master May 21, 2026
83 checks passed
@untitaker untitaker deleted the markusunterwaditzer/stream-1028-separate-span-dedupe-keys branch May 21, 2026 16:50
JonasBa pushed a commit that referenced this pull request May 21, 2026
#116010)

## Summary

- Add `SENTRY_SPAN_DEDUPE_CLUSTER` setting to allow span deduplication
keys to be configured independently from the main span buffer cluster
- Defaults to `SENTRY_SPAN_BUFFER_CLUSTER` if not explicitly set,
maintaining backwards compatibility
- Enables better resource isolation for dedupe operations in the
process_segments consumer

Note: Flush locks remain on `SENTRY_SPAN_BUFFER_CLUSTER` because
`add-buffer.lua` checks lock existence atomically during span ingestion.

ref STREAM-1028
natemoo-re pushed a commit that referenced this pull request May 21, 2026
#116010)

## Summary

- Add `SENTRY_SPAN_DEDUPE_CLUSTER` setting to allow span deduplication
keys to be configured independently from the main span buffer cluster
- Defaults to `SENTRY_SPAN_BUFFER_CLUSTER` if not explicitly set,
maintaining backwards compatibility
- Enables better resource isolation for dedupe operations in the
process_segments consumer

Note: Flush locks remain on `SENTRY_SPAN_BUFFER_CLUSTER` because
`add-buffer.lua` checks lock existence atomically during span ingestion.

ref STREAM-1028
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