-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reopen "Gin Context implementation breaks context.Context contract #3888" #4074
Comments
@FarmerChillax @appleboy check this please |
see: #3993 (comment) |
this is a break change, I would not recommend making such changes in a widely used framework. And this doesn't seem to be the root cause (with otel) |
In otel the currentSpanKey is Type of traceConrextKeyType. In here, you can set see: #3993 (comment) with Go Context standards:
|
Minimum case, Hope this helps. Go playground: https://go.dev/play/p/V_-_k4qhbMK
In shell:
go mod:
|
yes, this really work ,thk
|
Add example in gin-gonic/examples#171 @appleboy |
this commit did not fix problem,just replace 0 to ContextRequestKey
#3897
this code can solve this problem
The text was updated successfully, but these errors were encountered: