Skip to content

Commit 499c041

Browse files
ref(pydantic-ai): Remove set_data_normalized for the gen_ai.response.model attribute (#5512)
Remove `set_data_normalized()` for the `gen_ai.response.model` attribute in the `pydantic-ai` integration. The `model_name` field of `ModelResponse` is a `str` or `None` according to the type annotation, so no normalization is required.
1 parent 7e224c8 commit 499c041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/pydantic_ai/spans/ai_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _set_output_data(span: "sentry_sdk.tracing.Span", response: "Any") -> None:
207207
if not response:
208208
return
209209

210-
set_data_normalized(span, SPANDATA.GEN_AI_RESPONSE_MODEL, response.model_name)
210+
span.set_data(SPANDATA.GEN_AI_RESPONSE_MODEL, response.model_name)
211211
try:
212212
# Extract text from ModelResponse
213213
if hasattr(response, "parts"):

0 commit comments

Comments
 (0)