Skip to content

Commit

Permalink
Fix grpc and add traces too
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomac committed Feb 21, 2025
1 parent 40600ec commit 12911f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/internal/request/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func (s *Span) isHTTPOrGRPCClient() bool {
func (s *Span) isMetricsExportURL() bool {
switch s.Type {
case EventTypeGRPCClient:
return strings.HasSuffix(s.Path, grpcMetricsDetectPattern)
return strings.HasPrefix(s.Path, grpcMetricsDetectPattern)
case EventTypeHTTPClient:
return strings.HasSuffix(s.Path, metricsDetectPattern)
default:
Expand All @@ -501,7 +501,7 @@ func (s *Span) isTracesExportURL() bool {
case EventTypeGRPCClient:
return strings.HasPrefix(s.Path, grpcTracesDetectPattern)
case EventTypeHTTPClient:
return strings.HasPrefix(s.Path, tracesDetectPattern)
return strings.HasSuffix(s.Path, tracesDetectPattern)
default:
return false
}
Expand Down

0 comments on commit 12911f2

Please sign in to comment.