Disabling logging globally
To disable logging, set theTRACELOOP_TRACE_CONTENT
environment variable to false
.
On Typescript/Javascript you can also pass the traceContent
option.
Enabling logging selectively in specific workflows / tasks
You can decide to selectively enable prompt logging for specific workflows, tasks, agents, or tools, using the annotations API. If you don’t specify atraceContent
option, the global setting will be used.
Enabling logging selectively for specific users
You can decide to selectively enable or disable prompt logging for specific users or workflows.Using the Traceloop Platform
We have an API to enable content tracing for specific users, as defined by association entities. See the Traceloop API documentation for more information.Without the Traceloop Platform
Set a key calledoverride_enable_content_tracing
in the OpenTelemetry context to True
right before making the LLM call
you want to trace with prompts.
This will create a new context that will instruct instrumentations to log prompts and completions as span attributes.
Python
Python