Learn how to enrich your traces and spans with custom metadata and attributes using the LangWatch TypeScript SDK.
langwatch.user.id
, langwatch.thread.id
app.version
, environment
, region
gen_ai.request.model
, gen_ai.request.temperature
, gen_ai.response.prompt_tokens
tool.name
, api.endpoint
, response.status
retrieved.document.ids
, chunk.count
customer.tier
, feature.flags
, processing.stage
setAttributes()
method. This method accepts an object with key-value pairs.
langwatch.user.id
s or gen_ai.request.model
s)