Skip to content

Commit 8ef069f

Browse files
authored
otelhttp: fix ref to WithMetricAttributesFn in GoDoc (#8150)
1 parent 79904a3 commit 8ef069f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/net/http/otelhttp/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func (h *middleware) metricAttributesFromRequest(r *http.Request) []attribute.Ke
226226
// with HTTP route attribute.
227227
//
228228
// Deprecated: spans are automatically annotated with the route attribute.
229-
// To annotate metrics, use the `WithMetricAttributesFn` option.
229+
// To annotate metrics, use the [WithMetricAttributesFn] option.
230230
func WithRouteTag(route string, h http.Handler) http.Handler {
231231
attr := semconv.NewHTTPServer(nil).Route(route)
232232
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)