Skip to content

Commit

Permalink
Inject Pyroscope middleware into the call chain
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewslotin committed Aug 2, 2024
1 parent 2d2a80e commit e42ddb0
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 e42ddb0

Please sign in to comment.