get_error_count
Count traces and error-level observations within a recent time window to monitor application reliability and surface failures for debugging.
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 (the same error-observation total
as find_exceptions, not a count of individual exception events; 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 | |||