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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"age": "<age>"
},
"name": "get_error_count"
}
}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 | |||