Want to add user and session information to your traces? Check out the
Sessions and users guide instead.
Adding trace-level metadata
Use the functionupdate_current_trace()
from Openlayer’s Python SDK to attach metadata
to the entire trace.
update_current_trace()
will be stored in the
trace metadata and visible and filterable in the Openlayer platform.
Adding step-level metadata
Useupdate_current_step()
to attach metadata to individual steps within a trace.
This is useful for step-specific information like intermediate results or processing details.