Apart from the reserved pre-defined events, you can also define your own events relevant to your business to correlate with your LLM messages and threads to measure your product performance. Custom events allow you to track any user interactions with your LLM application by sending numeric metrics and capturing additional details about the event. You can define any name for the event on theDocumentation Index
Fetch the complete documentation index at: https://langwatch.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
event_type field, and any metric names you want on metrics with numeric values, plus any extra details you want to capture on event_details with string values. Keep them consistent to visualize on the dashboard, where you can customize the display later on.
REST API Specification
Endpoint
POST /api/track_event
Headers
X-Auth-Token: Your LangWatch API key.
Request Body
Example
