Skip to content

Commit e6bae79

Browse files
committed
typing
1 parent b82b0e7 commit e6bae79

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)
119-
span.set_attribute("http.user_agent", user_agent)
120-
span.set_attribute("http.referrer", referrer)
121-
span.set_attribute("user.id", user_id)
122-
span.set_attribute("organization", organization)
123-
span.set_attribute("app", app)
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
124124
except Exception as e:
125125
logger.warning("Error loading baggage user information", e)
126126
pass

0 commit comments

Comments
 (0)