find_exceptions
Group error-level observations by file, function, type, name, or observation type to analyze and debug exceptions in Langfuse traces.
Instructions
Get error-level observations grouped by file path, function, type, name, or observation type.
Args:
ctx: Context object containing lifespan context with Langfuse client
age: Number of minutes to look back; capped by the configured maximum
group_by: How to group errors - "file" groups by recorded code.filepath, "function" by code.function,
"type" by recorded exception.type, "name" by observation name, or "observation_type" by
observation type
Returns:
List of error-observation counts grouped by the specified category. A group entry carries a
representative observation_id and trace_id. Counts describe error-level observations, NOT
individual exception events (which the standard observation listing does not expose).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | Number of minutes to look back (positive integer, max 7 days/10080 minutes) | |
| group_by | No | How to group errors - 'file' groups by recorded code.filepath metadata, 'function' by code.function, 'type' by recorded exception.type, 'name' by observation name, or 'observation_type' by observation type. Missing recorded metadata groups as 'unknown'. | file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||