Skip to content

Commit

Permalink
fix: Handle grpcio target schemes like 'dns:///'
Browse files Browse the repository at this point in the history
Signed-off-by: Ferenc Géczi <ferenc.geczi@ibm.com>
  • Loading branch information
Ferenc- committed May 2, 2024
1 parent 66e15fc commit 9cd655a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions instana/instrumentation/grpcio.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def collect_tags(span, instance, argv, kwargs):

span.set_tag('rpc.call', method)

if ':///' in target:
_, target, *_ = target.split(':///')
parts = target.split(':')
if len(parts) == 2:
span.set_tag('rpc.host', parts[0])
Expand Down

0 comments on commit 9cd655a

Please sign in to comment.