Langtrace SDK allows you to pass a session ID to traces to filter them later.
A session ID is a unique identifier for a user session. It is useful to group traces together for a single user session.
In order to pass a session ID to traces, you can use the inject_additional_attributes
function (Python) or withAdditionalAttributes
function (Typescript).
For python, you can use the inject_additional_attributes
function to pass a session ID to traces.
For Typescript, you can use the withAdditionalAttributes
function to pass a session ID to traces.
To filter traces by session ID, you can use the session.id
filter in the UI. Additionally, you can also see the session ID of each trace in the UI.