get_error_count
Count ERROR-level traces in Langfuse within a specified time range to monitor application health and identify issues before detailed investigation.
Instructions
Returns the total count of ERROR-level traces within the specified time range.
The server scans up to 500 traces (5 pages of 100) and counts those with level=ERROR. The response contains errorCount, fromTimestamp, and toTimestamp.
Both time range parameters are optional. Omit them to count errors across all time. Use this for a quick health signal before drilling into individual traces with find_exceptions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fromTimestamp | Yes | Start of time range in ISO-8601 format, e.g. 2025-06-01T00:00:00Z. Omit to count from the beginning of the project. | |
| toTimestamp | Yes | End of time range in ISO-8601 format, e.g. 2025-06-30T23:59:59Z. Omit to count up to the current time. |