Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Swap getClientAddress().host call for the UNIXAddress compatible repl…
Browse files Browse the repository at this point in the history
…acment, allowing tracing to correctly tag spans.
  • Loading branch information
realtyem committed Jul 10, 2023
1 parent 517654f commit d8a60d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/logging/opentracing.py
Expand Up @@ -1070,7 +1070,7 @@ def trace_servlet(
tags.SPAN_KIND: tags.SPAN_KIND_RPC_SERVER,
tags.HTTP_METHOD: request.get_method(),
tags.HTTP_URL: request.get_redacted_uri(),
tags.PEER_HOST_IPV6: request.getClientAddress().host,
tags.PEER_HOST_IPV6: request.get_client_ip_if_available(),
}

request_name = request.request_metrics.name
Expand Down

0 comments on commit d8a60d7

Please sign in to comment.