Connect with Sentry
Complete these steps in the Sentry webhook configuration:
-
Go to your Sentry project settings.
-
Navigate to Integrations > Webhooks.
-
Click "Add Webhook".
-
Set the Webhook URL to:
https://<service_id>:<api_key>@api.smallhours.dev/v1/investigate
-
Under "Events," select "All Events" to capture all types of events.
-
Save the webhook configuration.
Configure Sentry to send exceptions:
-
In your Sentry SDK configuration, ensure that you have set up error capturing.
-
Sentry will automatically capture unhandled exceptions and send them to the configured webhook.
-
For manual error capturing, use the appropriate SDK method. For example, in Python:
sentry_sdk.capture_exception(exception)
Set up Sentry Alerts:
-
Go to Alerts > Rules in your Sentry project.
-
Click "Create Alert Rule".
-
Choose the conditions that should trigger the alert (e.g., "When: A new issue is created").
-
In the "Actions" section, select "Send webhook".
-
Choose the webhook you created earlier.
-
Save the alert rule.
Sentry will now automatically send detailed information about exceptions and alerts to Small Hours, including:
- Event details (type, message, stack trace)
- Issue information (title, URL)
- Project and environment data
This allows Small Hours to provide accurate and timely analysis of your application's issues.