Skip to content

Commit

Permalink
Update instrumentation/net/http/otelhttp/handler.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Apr 26, 2023
1 parent 2df70cc commit 3306f1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions instrumentation/net/http/otelhttp/handler.go
Expand Up @@ -60,8 +60,9 @@ func NewHandler(handler http.Handler, operation string, opts ...Option) http.Han
return NewMiddleware(operation, opts...)(handler)
}

// NewMiddleware returns a tracing and metrics middleware from the given
// operation name and options.
// NewMiddleware returns a tracing and metrics instrumentation middleware.
// The handler returned by the middleware wraps a handler
// in a span named after the operation and enriches it with metrics.
func NewMiddleware(operation string, opts ...Option) func(http.Handler) http.Handler {
h := middleware{
operation: operation,
Expand Down

0 comments on commit 3306f1c

Please sign in to comment.