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

 tracer and use only Datadog ddtrace for tracing (Issue #1477)
received: 2026-03-05 10:06:02
date_header: Thu, 14 Aug 2025 13:04:10 -0700
priority: normal
status: awaiting_approval
uid: 27616
---

## Email Content

**From:** Osman Sultan <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] How to disable default OpenAI

 tracer and use only Datadog ddtrace for tracing (Issue #1477)
**Date:** Thu, 14 Aug 2025 13:04:10 -0700

### Body (preview)

osman-sultan left a comment (openai/openai-agents-python#1477)



This snippet from the [docs](https://openai.github.io/openai-agents-python/tracing/) might be helpful:



> ## Custom tracing processors



The high level architecture for tracing is:



-   At initialization, we create a global [`TraceProvider`][agents.tracing.setup.TraceProvider], which is responsible for creating traces.

-   We configure the `TraceProvider` with a [`BatchTraceProcessor`][agents.tracing.processors.BatchTraceProcessor] that sends traces/spans in batches to a [`BackendSpanExporter`][agents.tracing.processors.BackendSpanExporter], which exports the spans and traces to the OpenAI backend in batches.



To customize this default setup, to send traces to alternative or additional backends or modifying exporter behavior, you have two options:



1. [`add_trace_processor()`][agents.tracing.add_trace_processor] lets you add an **additional** trace processor that will receive traces and spans as they are ready. This lets you do your own processing in addition to sending traces to OpenAI's backend.

2. [`set_trace_processors()`][agents.tracing.set_trace_processors] lets you **replace** the default processors with your own trace processors. This means traces will not be sent to the OpenAI backend unless you include a `TracingProcessor` that does so.



-- 

Reply to this email directly or view it on GitHub:

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

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



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

---

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