Skip to content

Disable tracing #73

@othmaan

Description

@othmaan

It seems that no matter I do, tracing is enabled including audio in and audio out. https://platform.openai.com/traces

All the below doesn't disable tracing:

OPENAI_AGENTS_DISABLE_TRACING=1
TRACES_ENABLED=0
OPENAI_DISABLE_TRACING=1
DISABLE_TRACING=1
OPENAI_LOG_LEVEL=info
OPENAI_TELEMETRY_DISABLED=1
OPENAI_TRACE_INCLUDE_SENSITIVE_DATA=1

Also passing tracing: null has no effect. Although in session object in response showing it's null

const response = await fetch(
"https://api.openai.com/v1/realtime/sessions",
{
method: "POST",
headers: {
Authorization: Bearer ${process.env.OPENAI_API_KEY},
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "gpt-4o-realtime-preview-2025-06-03",
tracing: null // https://platform.openai.com/docs/api-reference/realtime-sessions/session_object#realtime-sessions/session_object-tracing
}),
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions