---
type: email
from: SyedHyder2308 <notifications@github.com>
subject: Re: [openai/openai-agents-python] Feature: Make

 trace_include_sensitive_data configurable via environment variable (PR #1192)
received: 2026-03-05 10:08:59
date_header: Sun, 17 Aug 2025 08:20:13 -0700
priority: normal
status: awaiting_approval
uid: 27889
---

## Email Content

**From:** SyedHyder2308 <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] Feature: Make

 trace_include_sensitive_data configurable via environment variable (PR #1192)
**Date:** Sun, 17 Aug 2025 08:20:13 -0700

### Body (preview)

@Kunmeer-SyedMohamedHyder commented on this pull request.







> @@ -81,6 +82,12 @@ def get_default_agent_runner() -> AgentRunner:

     return DEFAULT_AGENT_RUNNER

 

 

+def _default_trace_include_sensitive_data() -> bool:

+    """Returns the default value for trace_include_sensitive_data based on environment variable."""

+    val = os.getenv("OPENAI_AGENTS_TRACE_INCLUDE_SENSITIVE_DATA", "true")

+    return val.strip().lower() in ("1", "true", "yes", "on")



@seratch and @rm-openai should I implement this suggestion by Copilot? What would be your take on this?



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1192#discussion_r2280920090

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



Message ID: <openai/openai-agents-python/pull/1192/review/3126379937@github.com>

---

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