-
Notifications
You must be signed in to change notification settings - Fork 562
Open
Description
How do you use Sentry?
Sentry Saas (sentry.io)
Version
2.39.0
Steps to Reproduce
Using:
- sentry-sdk: 2.39.0
- openai: 1.107.1
- openai-agents: 0.3.3
- Python: 3.13.2
import sentry_sdk
import agents
from sentry_sdk.integrations.openai_agents import OpenAIAgentsIntegration
sentry_sdk.init(
dsn="YOUR_DSN",
enable_tracing=True,
traces_sample_rate=1.0,
send_default_pii=True,
integrations=[OpenAIAgentsIntegration()],
)
my_agent = agents.Agent(
name="My Agent",
instructions="You are a helpful assistant.",
model="gpt-4o-mini",
)
result = agents.Runner.run_sync(my_agent, input="hi")
Expected Result
Agent workflow data should appear in the Insights → AI page alongside other AI monitoring data.
Actual Result
The agent workflow data is partially captured: it appears in the Insights → Backend section, and individual traces show an AI Spans tab with details like token usage and agent information. However, the Insights → AI page remains completely empty, even though the integration appears to be working correctly based on the trace data.
The agent_workflow_span function creates the root workflow span without specifying an op parameter. The AI Insights page filters for transactions with AI-specific operation types like gen_ai.pipeline, which seems to be causing the issue.
Metadata
Metadata
Assignees
Projects
Status
Waiting for: Product Owner