Skip to content

Commit 362f1f4

Browse files
committed
fix: Handle grpcio target schemes like 'dns:///'
Signed-off-by: Ferenc Géczi <[email protected]>
1 parent 66e15fc commit 362f1f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

instana/instrumentation/grpcio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def collect_tags(span, instance, argv, kwargs):
3535

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

38+
if ':///' in target:
39+
_, target, *_ = target.split(':///')
3840
parts = target.split(':')
3941
if len(parts) == 2:
4042
span.set_tag('rpc.host', parts[0])

0 commit comments

Comments
 (0)