Skip to content

Commit

Permalink
fix: unquote peer ip (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv authored Sep 6, 2022
1 parent 8107ad4 commit 6af37e9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import logging
from contextlib import contextmanager
from urllib.parse import unquote

import grpc

Expand Down Expand Up @@ -237,6 +238,7 @@ def _start_span(
ip, port = (
context.peer().split(",")[0].split(":", 1)[1].rsplit(":", 1)
)
ip = unquote(ip)
attributes.update(
{
SpanAttributes.NET_PEER_IP: ip,
Expand Down

0 comments on commit 6af37e9

Please sign in to comment.