---
type: email
from: Illia Pantsyr <notifications@github.com>
subject: [openai/openai-agents-python] How to disable default OpenAI tracer

 and use only Datadog ddtrace for tracing (Issue #1477)
received: 2026-03-05 10:05:53
date_header: Thu, 14 Aug 2025 09:36:32 -0700
priority: normal
status: awaiting_approval
uid: 27599
---

## Email Content

**From:** Illia Pantsyr <notifications@github.com>
**Subject:** [openai/openai-agents-python] How to disable default OpenAI tracer

 and use only Datadog ddtrace for tracing (Issue #1477)
**Date:** Thu, 14 Aug 2025 09:36:32 -0700

### Body (preview)

panilya created an issue (openai/openai-agents-python#1477)



### Question

How to disable default OpenAI tracer and leave only the Datadog's `ddtrace-run` tracer?



I want to use Datadog's LLM tracer with my agents because OpenAI API key I use has zero-data retention policy and default OpenAI tracer fails with 403 errors.



I'm running Datadog tracer via `DD_LLMOBS_ENABLED=true DD_API_KEY=X DD_LLMOBS_ML_APP=X uv run ddtrace-run uvicorn src.main:app --host 0.0.0.0 --port 5050` terminal command.



Using `ddtrace==3.9.0` dependency.



I've tried to do similar to this discussion:

https://github.com/openai/openai-agents-python/issues/1387



Here's the code I use at the start of my `main.py` file:

```

from agents import set_trace_processors

set_trace_processors([])



from ddtrace import patch

patch(openai_agents=True)

```



But the code above doesn't seem to help - it makes it even worse, because traces with the code above are not visible in Datadog.



Am I doing something wrong?



Thanks for the help!



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/1477

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/issues/1477@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
