Skip to content

Commit 75a78bc

Browse files
committed
typing
1 parent e6bae79 commit 75a78bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

guardrails/telemetry/common.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ def add_user_attributes(span: Span):
115115
organization = get_baggage("organization") or "unknown"
116116
app = get_baggage("app") or "unknown"
117117

118-
span.set_attribute("client.ip", client_ip) # type: ignore
119-
span.set_attribute("http.user_agent", user_agent) # type: ignore
120-
span.set_attribute("http.referrer", referrer) # type: ignore
121-
span.set_attribute("user.id", user_id) # type: ignore
122-
span.set_attribute("organization", organization) # type: ignore
123-
span.set_attribute("app", app) # type: ignore
118+
span.set_attribute("client.ip", str(client_ip))
119+
span.set_attribute("http.user_agent", str(user_agent))
120+
span.set_attribute("http.referrer", str(referrer))
121+
span.set_attribute("user.id", str(user_id))
122+
span.set_attribute("organization", str(organization))
123+
span.set_attribute("app", str(app))
124124
except Exception as e:
125125
logger.warning("Error loading baggage user information", e)
126126
pass

0 commit comments

Comments
 (0)