Metadata
Adding metadata to your traces for additional information
With Confident AI, you can attach additional metadata to traces, spans, and threads. This information can be used for filtering, grouping, and analyzing your traces in the observatory.
Use the update current span and update current trace functions to add span-level and trace-level metadata.
Each metadata argument is a dictionary whose keys are strings and whose values are any JSON-serializable type.
You can also attach metadata to threads — useful for tagging production conversations with attributes like DVA version, client, or agent ID. See Set Thread Metadata for the payload shape.