Set up tracing
Set up LLM tracing with tracely.
For an end-to-end example, check the Tracing Quickstart.
Installation and Imports
Install the tracely
package from PyPi.
Imports:
Initialize tracing
Use init_tracing
to enable tracely tracing. Example:
Tracing parameters
Tracing a function
To trace a function call use trace_event()
decorator.
Example 1. To log all arguments of the function:
Example 2. To log only input arguments of the function:
Example 3. To log only "arg1" and "arg2":
See the Tracing Quickstart for an end-to-end example.
Last updated