Skip to content

Commit

Permalink
HH-194007 add peer.service tag to span
Browse files Browse the repository at this point in the history
  • Loading branch information
rogoza-igor committed Oct 3, 2023
1 parent e0d1720 commit b1a7c96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontik/integrations/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def _client_request_hook(span: Span, params: aiohttp.TraceRequestStartParams):
upstream_name = get_netloc(request.url)

span.update_name(' '.join((el for el in [request.method, upstream_name] if el)))
span.set_attribute(SpanAttributes.PEER_SERVICE, upstream_name)
span.set_attribute('http.request.timeout', request.request_timeout * 1000)
if upstream_datacenter is not None:
span.set_attribute('http.request.cloud.region', upstream_datacenter)
Expand Down

0 comments on commit b1a7c96

Please sign in to comment.