What is captured by default
Capture settings prevent the selected values from being written to spans. They do not modify what your application passes to an LLM provider or tool.
Disable input and output for one function
- Python
- TypeScript
observe call. Auto-instrumented child calls can still capture their own inputs and outputs according to the integration’s settings.
Redact Pi content before export
The TypeScript Pi instrumentation accepts acaptureContent callback. It runs before content is attached to a span and can return replacement text or undefined to omit that item.
Disable tracing entirely
SetTRACEROOT_ENABLED before the SDK initializes:
You can also pass
enabled=False to Python’s initialize() or enabled: false to TraceRoot.initialize() in TypeScript.
Privacy checklist
- Classify prompts, completions, function arguments, tool I/O, metadata, tags, and source paths before enabling tracing in production.
- Disable capture as close as possible to the function or integration that handles sensitive data.
- Never attach secrets to metadata or manual span updates.
- Verify a representative exported trace in a non-production project before rollout.
- Apply your organization’s retention, access-control, and data-processing requirements to the TraceRoot deployment you use.

