Skip to content

Commit

Permalink
Merge pull request #60 from grafana/fix_pyroscope_instrumentation
Browse files Browse the repository at this point in the history
Inject Pyroscope middleware into the call chain
  • Loading branch information
andrewslotin authored Aug 13, 2024
2 parents 2d2a80e + e42ddb0 commit d661441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (s *Server) WithPrometheus() *Server {

// WithProfiling adds a middleware that extracts k6 labels from the baggage and adds them to the context.
func (s *Server) WithProfiling() *Server {
s.router.Use(k6.LabelsFromBaggageHandler)
s.router = s.router.With(k6.LabelsFromBaggageHandler)

return s
}
Expand Down

0 comments on commit d661441

Please sign in to comment.