Skip to content

Conversation

constantinius
Copy link
Contributor

@constantinius constantinius commented Sep 30, 2025

Description

We can set the agent data early, so that we get input model and other data, even if there's an exception while running the agent

Issues

Resolves: TET-1205


Note

Move _set_agent_data to ai_client_span so agent/model metadata is recorded when the span is created.

  • Tracing (sentry_sdk/integrations/openai_agents/spans/ai_client.py):
    • Set agent metadata in ai_client_span via _set_agent_data at span creation.
    • Remove _set_agent_data from update_ai_client_span to avoid duplication.

Written by Cursor Bugbot for commit 27e94cc. This will update automatically on new commits. Configure here.

@constantinius constantinius requested a review from a team as a code owner September 30, 2025 13:35
Copy link

linear bot commented Sep 30, 2025

Copy link
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@constantinius constantinius merged commit 2872675 into master Oct 1, 2025
113 checks passed
@constantinius constantinius deleted the constantinius/fix/openai-agents/early-chat-agent-data branch October 1, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants