Skip to content

fix(actix): process request in other middleware using correct Hub#758

Merged
lcian merged 6 commits intomasterfrom
lcian/feat/actix-pass-hub
Mar 26, 2025
Merged

fix(actix): process request in other middleware using correct Hub#758
lcian merged 6 commits intomasterfrom
lcian/feat/actix-pass-hub

Conversation

@lcian
Copy link
Copy Markdown
Member

@lcian lcian commented Mar 25, 2025

Extensions are a feature of Actix-web to pass request-local data.
With this change, we pass the Hub that we create with each Actix request in the extensions, so that other middleware can access it and use it to capture events within the correct hub.

Closes #624

Comment thread sentry-actix/src/lib.rs Outdated
@lcian lcian requested a review from Swatinem March 25, 2025 15:31
@lcian lcian changed the title feat(actix): pass request Hub in request extensions fix(actix): use correct Hub when processing request through middleware Mar 26, 2025
@lcian lcian changed the title fix(actix): use correct Hub when processing request through middleware fix(actix): use correct Hub when processing request in other middleware Mar 26, 2025
@lcian lcian changed the title fix(actix): use correct Hub when processing request in other middleware fix(actix): process request in other middleware using correct Hub Mar 26, 2025
@lcian lcian merged commit 44fa0cf into master Mar 26, 2025
14 checks passed
@lcian lcian deleted the lcian/feat/actix-pass-hub branch March 26, 2025 12:48
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.

Unable to add a breadcrumb from actix-web middleware

2 participants