Logging
Traces
You can easily trace any function using the unify.traced
decorator.
If you create a view tile and select the trace in the table, you’ll then see the trace viewer.
IMG
Traces are made up of spans, each of which represent a unit of computation. Traces can have an arbitrary number of spans, and spans can have child spans up to an arbitrary depth.
IMG
LLM Traces
LLMs can also be traced, by setting traced=True
in the client constructor (see Universal API section).
IMG
When these LLM calls are part of a broader trace, then the cost and tokens are accumulated in the trace, propogating the cost and tokens to the parent spans.
IMG