Skip to content

docs(hub): Clarify concurrent Hub usage - #1280

Merged
szokeasaurusrex merged 1 commit into
masterfrom
szokeasaurusrex/clarify-multithread-hub-limitation
Aug 5, 2026
Merged

docs(hub): Clarify concurrent Hub usage#1280
szokeasaurusrex merged 1 commit into
masterfrom
szokeasaurusrex/clarify-multithread-hub-limitation

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Aug 4, 2026

Copy link
Copy Markdown
Member

Document that sharing a Hub between concurrent threads or tasks is memory-safe but can lead to unexpected behavior. Explain that concurrent configure_scope calls are not atomic and may lose updates, and recommend separate hubs.

This is not a new limitation; it was already documented in sentry-core's crate-level docs, and these changes just mention the same limitation on the Hub and configure_scope docs directly.

Fixes #1110
Fixes RUST-208

Document that sharing a `Hub` between concurrent threads or tasks is memory-safe but can lead to unexpected behavior. Explain that concurrent `configure_scope` calls are not atomic and may lose updates, and recommend separate hubs.

Fixes [#1110](#1110)
Fixes [RUST-208](https://linear.app/getsentry/issue/RUST-208/hubconfigure-scope-can-lose-concurrent-updates-on-a-shared-hub)
@linear-code

linear-code Bot commented Aug 4, 2026

Copy link
Copy Markdown

RUST-208

@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review August 4, 2026 09:56
@szokeasaurusrex
szokeasaurusrex requested a review from a team as a code owner August 4, 2026 09:56
@szokeasaurusrex
szokeasaurusrex enabled auto-merge (squash) August 4, 2026 09:56
@szokeasaurusrex
szokeasaurusrex merged commit 0b21336 into master Aug 5, 2026
34 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/clarify-multithread-hub-limitation branch August 5, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hub::configure_scope can lose concurrent updates on a shared Hub

2 participants