Skip to content

Commit 206f1ba

Browse files
authored
Add tracing instructions to agent monitoring (#14478)
1 parent a931051 commit 206f1ba

File tree

1 file changed

+2
-0
lines changed
  • docs/platforms/python/integrations/openai-agents

1 file changed

+2
-0
lines changed

docs/platforms/python/integrations/openai-agents/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ from sentry_sdk.integrations.openai_agents import OpenAIAgentsIntegration
3838

3939
sentry_sdk.init(
4040
dsn="___PUBLIC_DSN___",
41+
traces_sample_rate=1.0,
4142
# Add data like inputs and responses to/from LLMs and tools;
4243
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
4344
send_default_pii=True,
@@ -79,6 +80,7 @@ random_number_agent = agents.Agent(
7980
async def main() -> None:
8081
sentry_sdk.init(
8182
dsn="...", # same as above
83+
traces_sample_rate=1.0,
8284
# Add data like LLM and tool inputs/outputs;
8385
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
8486
send_default_pii=True,

0 commit comments

Comments
 (0)