From 57b808050042de60f79f497fb4c1102475375e23 Mon Sep 17 00:00:00 2001 From: Ajay Gupta Date: Fri, 28 Feb 2025 12:00:24 +0530 Subject: [PATCH] add target in case there is no host in target --- elasticapm/instrumentation/packages/grpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticapm/instrumentation/packages/grpc.py b/elasticapm/instrumentation/packages/grpc.py index 4cce71e35..cf59e2495 100644 --- a/elasticapm/instrumentation/packages/grpc.py +++ b/elasticapm/instrumentation/packages/grpc.py @@ -54,7 +54,7 @@ def call(self, module, method, wrapped, instance, args, kwargs): except ValueError: port = None else: - host, port = None, None + host, port = target, None return grpc.intercept_channel(result, _ClientInterceptor(host, port, secure=method == "secure_channel"))