Use OpenTelemetry to capture LLM traces and send them to LangWatch
LANGWATCH_API_KEY
from the LangWatch dashboard.using_attributes
context manager to capture additional information for your LLM calls, such as the user_id, session_id (equivalent to thread id), tags and metadata: