Skip to content
Snippets Groups Projects
Commit 6b22bc54 authored by ale's avatar ale
Browse files

Set PEER_SERVICE span attribute on client rpcs

parent 830c3285
No related branches found
No related tags found
No related merge requests found
Pipeline #61226 passed
...@@ -232,6 +232,7 @@ class ClientStub(): ...@@ -232,6 +232,7 @@ class ClientStub():
f'[client-rpc] {self.NAME}', f'[client-rpc] {self.NAME}',
kind=trace.SpanKind.CLIENT, kind=trace.SpanKind.CLIENT,
attributes={ attributes={
SpanAttributes.PEER_SERVICE: self.NAME,
SpanAttributes.HTTP_URL: parsed_url.url, SpanAttributes.HTTP_URL: parsed_url.url,
SpanAttributes.HTTP_HOST: target_addr, SpanAttributes.HTTP_HOST: target_addr,
SpanAttributes.HTTP_METHOD: 'POST', SpanAttributes.HTTP_METHOD: 'POST',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment