Skip to content

Commit 3337c19

Browse files
committed
fix(integrations): fixing span description -> name
1 parent 9d166ba commit 3337c19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/pydantic_ai/spans/ai_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def ai_client_span(messages, agent, model, model_settings):
2727
model: Model object
2828
model_settings: Model settings
2929
"""
30-
# Determine model name for span description
30+
# Determine model name for span name
3131
model_obj = model
3232
if agent and hasattr(agent, "model"):
3333
model_obj = agent.model
@@ -36,7 +36,7 @@ def ai_client_span(messages, agent, model, model_settings):
3636

3737
span = sentry_sdk.start_span(
3838
op=OP.GEN_AI_CHAT,
39-
description=f"chat {model_name}",
39+
name=f"chat {model_name}",
4040
origin=SPAN_ORIGIN,
4141
)
4242

0 commit comments

Comments
 (0)