Name
Giving names to your traces for better visbility on Confident AI
Overview
Both traces and spans have names, and you can customize them based on your liking for better UI display.
Set Name on Trace
You can name a trace at runtime by providing the name paramter in update_current_trace:
Python
TypeScript
main.py
By default, the name on a trace is set to None.
Set Name on Span
The default name for a span is the name of the function/method you’re decorating. If you wish to overwrite this behavior, simply provide a name to the update_current_span function:
Python
TypeScript
main.py