Skip to content

Commit

Permalink
Added http route to client attributes (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgnanasekaran authored Feb 1, 2024
1 parent 7d71758 commit 447c8b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/internal/export/otel/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ func (mr *MetricsReporter) httpClientAttributes(span *request.Span) []attribute.
attrs = append(attrs, ServerAddr(span.Host))
attrs = append(attrs, ServerPort(span.HostPort))
}
if span.Route != "" {
attrs = append(attrs, semconv.HTTPRoute(span.Route))
}

return attrs
}
Expand Down

0 comments on commit 447c8b9

Please sign in to comment.