Features
Add Additional Attributes to Traces
You can add additional attributes to traces in Langtrace by simply wrapping your code with the withAdditionalAttributes
or inject_additional_attributes
function. This will add the specified attributes to the trace spans.
You can add additional attributes to traces in Langtrace by simply wrapping your code with the withAdditionalAttributes
for typescript or inject_additional_attributes
function for python. This will add the specified attributes to the trace spans. Make sure to pass the attributes as a key-value pair to the function.
Typescript SDK
Python SDK
DO NOT USE this the Python decorator - with_additional_attributes
. It will be
deprecated soon. Please use inject_additional_attributes
function instead.