Skip to main content
The Sentry live data source reads the errors, issues and release health of up to 20 projects in one Sentry organization. Lightdash turns each query into a call to Sentry’s events, issues or sessions API, and Sentry groups and counts the results itself. Error data stays in Sentry. It’s a level 3 integration: its API runs reports from a fixed menu of dimensions and metrics.

Before you start

  • Developer or Admin role in the Lightdash project.
  • A Sentry auth token from an internal integration. In Sentry, create an internal integration under Settings → Developer Settings, give it Read access to Organization, Project and Issue & Event, and copy its token. The Scopes card in Lightdash lists the matching scopes: org:read, project:read and event:read.
  • The slugs of the organization and of each project you want to query, as they appear in Sentry URLs, such as acme and mobile-ios.

Connect Sentry

  1. On the nav bar, click Browse → Semantic Layer.
  2. Click Add → Live data source.
  3. Select Sentry.
  4. In Organization and projects, enter the organization slug, a slash and the project slugs, separated by commas, such as acme/mobile-ios,mobile-android. You can name up to 20 projects.
  5. Enter the Auth token, then click Test. The test shows the projects and how many error events they had in the last 24 hours.
  6. Under Details, check the Name. People see the name in Explore and agents use it to refer to the source.
  7. Click Add source.
The Add Sentry source dialog with the Scopes card, the Organization and projects and Auth token fields with a Test button, the Name field under Details, and the Add source button
Lightdash adds Errors, Issues and Sessions tables to Explore, grouped under the source’s name. The auth token can read every project in the organization, but the source reads only the projects you named, and a query that filters on another project is refused.

Dimensions and metrics

All dates are whole days in UTC. Sentry keeps events and sessions for 90 days, so queries can’t look back further.

Errors

Error and crash events, grouped and counted by Sentry. Without a Date filter, a query reads the last 30 days. Issues and Users affected are distinct counts, so they don’t add up across rows. No field holds a user’s identity.

Issues

One row per issue with events in the last 90 days. The table has no metrics: to count issues by release, project or day, use Errors. The assignee, the people who saw or commented on an issue, and the culprit aren’t read.

Sessions

Release health, totaled by Sentry. Without a Date filter, a query reads the last 30 days. Only projects whose apps report sessions have data, and a day or group with no sessions has no row. Users and the crash-free rates don’t add up across rows, so select them at the grain you need, such as by Release. Session status can’t be selected with a crash-free rate, or with Release, Project or Environment: filter those fields instead. Date filters support in the last, in the current, is between, is, is before, is after, is on or before and is on or after. A filter open at one end runs to today or to the first day Sentry keeps.

Supported features

Limits

A query that would return more than 999 rows is refused rather than cut short. Narrow the date range, add a filter or remove a dimension. A query with a smaller row limit shows the first rows in the sort order.

Example questions

  • “How many issues and error events did each release of our mobile app have in the last 30 days?”
  • “What’s the crash-free session rate and crash-free user rate of each release?”
  • “How have error events changed day by day over the last two weeks, by project and level?”
  • “Which unresolved issues affected the most users this month, and when was each first seen?”
  • “Which new issues were first seen in the latest release?”
  • “How many sessions and users did each release have each day?”
  • “Which operating systems and device families have the most crashes?”

Troubleshooting

Sentry rejected the auth token. Create a new token in the internal integration and update the source. The Sentry auth token can’t read this. Check the project slugs, and give the internal integration Read access to Organization, Project and Issue & Event. Sentry can’t find the organization or one of its projects. Check the slugs, and that the token belongs to that organization. This Sentry source reads only these projects. The query filtered on a project the source doesn’t name. Filter on one of the projects the message lists, or use a source that names the project. Sentry refused the call because of its rate limit. Sentry limits each endpoint for each caller. Wait the time the message gives and run the query again. Sentry can’t read sessions over this many days. Narrow the date range on Sessions.