From 6b22bc5495ebe9c1a3fccbd07a17cb29172c611e Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 19 Nov 2023 08:11:17 +0000 Subject: [PATCH] Set PEER_SERVICE span attribute on client rpcs --- ai_web_common/rpc/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ai_web_common/rpc/core.py b/ai_web_common/rpc/core.py index 7fe5017..9edf718 100644 --- a/ai_web_common/rpc/core.py +++ b/ai_web_common/rpc/core.py @@ -232,6 +232,7 @@ class ClientStub(): f'[client-rpc] {self.NAME}', kind=trace.SpanKind.CLIENT, attributes={ + SpanAttributes.PEER_SERVICE: self.NAME, SpanAttributes.HTTP_URL: parsed_url.url, SpanAttributes.HTTP_HOST: target_addr, SpanAttributes.HTTP_METHOD: 'POST', -- GitLab