Enrich events with context and details to facilitate analysis and debugging.
trace_name
- default is ‘LLM’end_user_identifier
- This is a string representing any identifier for your end users such as an email address or user id.metadata
- This is a serializable dictionary of key value pairs that you want added to the trace. ex: {'git-hash': '1234abcd'}
tags
- This is a list of strings that you want added to the trace. ex: ['tag1', 'tag2']
target
- A string representing the ground truth answer you expect from the LLMname
- default is the function’s nameend_user_identifier
metadata
tags
target
deployment_id
session_id
- A string representing a session id for the completion.trace_insert()
helper function to add metadata to the trace.
trace_insert
takes a dictionary of metadata field name to value.
The fields supported by trace_insert are:
trace_name
end_user_identifier
metadata
tags
deployment_id
session_id
- A string representing a session id for the completion.