Sentry

Connect your Sentry issues to PagerTree.

CompanyEstimated TimeVendor DocsOpen Source

1 minute

What is Sentry?

Sentry is a developer-first error tracking and performance monitoring platform that helps developers see what actually matters, solve quicker, and learn continuously about their applications.

How It Works

Sentry triggers user-defined alerts by monitoring website performance, errors, and issues.

  • When an issue or error is created in Sentry, an alert is created in PagerTree automatically.

  • When an issue is resolved in Sentry, the alert is resolved in PagerTree.

Integration Walkthrough

In this integration tutorial, we will show you how to send issues from Sentry into PagerTree. The estimated time for this integration is 1 minute. We assume that you already have a PagerTree and Sentry account setup.

In PagerTree

  1. Ensure you are logged in to the PagerTree app in the account to which you wish to add the Sentry integration.

In Sentry

  1. Navigate to Settings -> Integrations.

  2. Search "PagerTree".

  3. Click on "PagerTree".

  4. Click the "Accept & Install" button. (This will redirect you to the PagerTree New Integration page.)

  5. On the PagerTree New Integration page, provide at minimum, a name and destinations for the Sentry issues that will be sent to this integration. Click "Create".

  6. You will be redirected back to Sentry and can confirm that the integration was installed correctly.

Testing

If you would like to test that an alert will be created in PagerTree when a new issue comes into Sentry you can use our docker image to generate a fake issue.

You will need:

  1. Docker running on your machine.

  2. Your .

To Test:

In your terminal run the following:

docker run -e SENTRY_DSN="<YOUR_SENTRY_DSN>" pagertree/sentry-error-faker:latest

This will generate an issue in Sentry similar to "CVE-2023-12345".

Webhooks (Legacy)

PagerTree also supports Sentry's legacy webhooks.

In PagerTree

  1. Create the integration by clicking the Sentry logo.

In Sentry

Create Webhook Integration

  1. Settings -> Integrations -> Webhooks.

  2. On the Webhook Integration Page click “Add to Project”.

  3. Paste the PagerTree Endpoint URL you copied in the Callback URLs field. Then click, Save Changes.

  4. Click Enable Plugin.

Add Alert Conditions

  1. Navigate to Alerts, and click the "Create Alert" button.

  2. Select Issues, and click "Set Conditions " button.

  3. On the New Alert Rule Page, select the following

    1. When any of the following happens

      1. A new issue is created

      2. The issue changes state from resolved to unresolved

    2. Then perform these actions

      1. Send a notification via WebHooks

    3. Provide an Alert Name (ex: Report Issues to PagerTree)

  4. Click Save Rule


You have successfully completed the Sentry Integration.


Last updated