We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gen_ai.response.model
None
1 parent b1e999d commit ad16009Copy full SHA for ad16009
1 file changed
sentry_sdk/integrations/anthropic.py
@@ -562,7 +562,8 @@ def _set_output_data(
562
) -> None:
563
"""
564
Set output data for the span based on the AI response."""
565
- span.set_data(SPANDATA.GEN_AI_RESPONSE_MODEL, model)
+ if model is not None:
566
+ span.set_data(SPANDATA.GEN_AI_RESPONSE_MODEL, model)
567
if response_id is not None:
568
span.set_data(SPANDATA.GEN_AI_RESPONSE_ID, response_id)
569
if finish_reason is not None:
0 commit comments