You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
Please answer these questions before submitting a bug report.
What version of OpenCensus are you using?
v0.24.0
What version of Go are you using?
go version go1.19.2 darwin/arm64
What did you do?
// ochttp
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
var tags addedTags
// ----- shallow copy
r, traceEnd := h.startTrace(w, r)
defer traceEnd()
w, statsEnd := h.startStats(w, r)
defer statsEnd(&tags)
handler := h.Handler
if handler == nil {
handler = http.DefaultServeMux
}
// ----- shallow copy
r = r.WithContext(context.WithValue(r.Context(), addedTagsKey{}, &tags))
handler.ServeHTTP(w, r)
}
// std http
func (c *conn) serve(ctx context.Context){
// w.req has not change
serverHandler{c.server}.ServeHTTP(w, w.req)
w.finishRequest()
}
What did you expect to see?
w.req has changed
What did you see instead?
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: