Conversation
c51544f to
a2b75f9
Compare
a2b75f9 to
603e3a2
Compare
603e3a2 to
71174c7
Compare
71174c7 to
630a26a
Compare
630a26a to
7efce58
Compare
7efce58 to
204d3b1
Compare
204d3b1 to
545a30d
Compare
545a30d to
e6596b7
Compare
e6596b7 to
fe5ae57
Compare
szokeasaurusrex
left a comment
There was a problem hiding this comment.
Again some questions but seems reasonable
| if storedCtx, ok := ctx.UserValue(contextKey{}).(*storedContext); ok { | ||
| storedCtx.cancel() | ||
| parentCtx = context.Background() | ||
| } |
There was a problem hiding this comment.
[question] What is a storedContext and why is it needed for FastHTTP? I did not see anything similar in the other HTTP frameworks.
| func TestSetHubOnContext(t *testing.T) { | ||
| hub := sentry.NewHub(sentry.CurrentHub().Client(), sentry.NewScope()) | ||
| ctx := &fasthttp.RequestCtx{} | ||
| func TestRequestIsolation(t *testing.T) { |
There was a problem hiding this comment.
[question] I am just wondering why we added this test here, for fasthttp, and not for the other HTTP frameworks in the previous PRs?
The test does also seem quite complex, and it seems we implemented similar tests in fiber and fiberv3 also, so I wonder if we could extract the common logic somehow and/or simplify it a bit
fe5ae57 to
798d05b
Compare
798d05b to
6259c50
Compare
6259c50 to
6107215
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6107215. Configure here.
Carry isolated scopes through native Fiber contexts and an explicit FastHTTP context bridge, including the framework error-handler lifecycle. Preserve active caller traces and let only the transaction creator update or finish them. Keep outer request cleanup registered across nested wrappers, distinguish active FastHTTP nesting from pooled request reuse, and read all incoming baggage values. Fiber v2, Fiber v3, and FastHTTP GetHubFromContext, SetHubOnContext, and GetSpanFromContext helpers are removed. Use the integrations' GetContext helpers and the root sentry context accessors, plus FastHTTP SetContext when supplying a parent context.
6107215 to
e91a65d
Compare

Description
This migrates fasthttp frameworks to the new scopes API
Issues
Changelog Entry Instructions
To add a custom changelog entry, uncomment the section above. Supports:
For more details: custom changelog entries
Reminders
feat:,fix:,ref:,meta:)