Skip to content

Commit

Permalink
set prop in middleware configure
Browse files Browse the repository at this point in the history
  • Loading branch information
TanishqPorwar committed Dec 29, 2024
1 parent 2d625aa commit 9be79d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions instrumentation/net/http/otelhttp/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (h *middleware) configure(c *config) {
h.publicEndpointFn = c.PublicEndpointFn
h.server = c.ServerName
h.semconv = semconv.NewHTTPServer(c.Meter)
h.metricAttributesFn = c.MetricAttributesFn
}

// serveHTTP sets up tracing and calls the given next http.Handler with the span
Expand Down

0 comments on commit 9be79d1

Please sign in to comment.