sentry_capture_exception
Capture and log exceptions with detailed context, error severity, and user information for effective monitoring and debugging in applications.
Instructions
Capture and send an exception to Sentry
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Additional context data | |
| error | Yes | Error message or description | |
| level | No | Severity level of the error | error |
| tags | No | Key-value pairs to tag the error | |
| user | No | User information |
Input Schema (JSON Schema)
{
"properties": {
"context": {
"additionalProperties": true,
"description": "Additional context data",
"type": "object"
},
"error": {
"description": "Error message or description",
"type": "string"
},
"level": {
"default": "error",
"description": "Severity level of the error",
"enum": [
"fatal",
"error",
"warning",
"info",
"debug"
],
"type": "string"
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Key-value pairs to tag the error",
"type": "object"
},
"user": {
"description": "User information",
"properties": {
"email": {
"type": "string"
},
"id": {
"type": "string"
},
"username": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}