Skip to content

Commit

Permalink
Fix gRPC URI detection
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPansino committed May 8, 2024
1 parent 8884497 commit 2113232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newrelic/hooks/framework_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


def _get_uri_method(instance, *args, **kwargs):
target = instance._channel.target().decode('utf-8')
target = instance._channel.target().decode('utf-8').lstrip("dns:///")
method = instance._method.decode('utf-8').lstrip('/')
uri = 'grpc://%s/%s' % (target, method)
return (uri, method)
Expand Down

0 comments on commit 2113232

Please sign in to comment.