get_error_count
Count traces with error-level observations over a specified time window to monitor and debug failures in LLM applications.
Instructions
Get number of traces with error-level observations in last N minutes.
Args:
ctx: Context object containing lifespan context with Langfuse client
age: Number of minutes to look back; capped by the configured maximum
Returns:
Dictionary with error statistics: trace_count (distinct traces), observation_count
(error-level observations), and exception_count (always null — individual exception
events are not retrievable from the standard observation listing; see metadata.note).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | Number of minutes to look back (positive integer, max 7 days/10080 minutes) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||