Skip to content

Commit 63c9ac4

Browse files
wuhan005Copilot
andauthored
Update internal/tracing/flamego.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fa74751 commit 63c9ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/tracing/flamego.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func Middleware(service string, opts ...Option) flamego.Handler {
2828
return func(res http.ResponseWriter, req *http.Request, c flamego.Context) {
2929
savedCtx := c.Request().Context()
3030
defer func() {
31-
c.Request().Request = c.Request().WithContext(savedCtx)
31+
c.Request().Request = c.Request().Request.WithContext(savedCtx)
3232
}()
3333

3434
ctx := cfg.Propagators.Extract(savedCtx, propagation.HeaderCarrier(c.Request().Header))

0 commit comments

Comments
 (0)