Skip to content

Navigation Menu

Sign in
Sign up

Preserve Hub binding for streaming responses in sentry-tower/axum #1208

Open
Labels
BugSomething isn't working RustSDK

Description

When using the sentry-tower/axum integration with streaming responses, the middleware binds the hub only for the request handler. Once the handler returns a streaming body, the middleware unwinds and axum drains the stream outside that hub. This causes missing context and any newly set context to be attached to the wrong hub during stream evaluation.

Track the tracing/transaction behavior separately in #1053.

A possible direction is to bind the hub to the response stream, similar to getsentry/objectstore#526.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working RustSDK

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /