You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-23 22:34:47 +02:00
fix interceptor regexp
This commit is contained in:
@@ -426,7 +426,7 @@ func peerInfoFromContext(ctx context.Context) []core.KeyValue {
|
||||
return peerInfoFromTarget(p.Addr.String())
|
||||
}
|
||||
|
||||
var fullMethodRegexp = regexp.MustCompile(`^/\S*\.(\S*)/\S*$`)
|
||||
var fullMethodRegexp = regexp.MustCompile(`^/(?:\S*\.)?(\S*)/\S*$`)
|
||||
|
||||
func serviceFromFullMethod(method string) string {
|
||||
match := fullMethodRegexp.FindAllStringSubmatch(method, 1)
|
||||
|
||||
Reference in New Issue
Block a user