> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lightdash.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sentry

> Query Sentry errors, issues and release health live from Explore and AI agents

The Sentry [live source](https://docs.lightdash.com/integrations/live-sources) reads the errors, issues and release health of projects in one Sentry organization.

## Before you start

* **An internal integration token** with the scopes below, from **Settings** → **Developer Settings** in Sentry.
* **Organization and project slugs**, as they appear in your Sentry URLs.

## Scopes

| Scope | Why |
| - | - |
| `org:read` | Reads error event counts and release health |
| `project:read` | Reads the projects you name in the source |
| `event:read` | Reads issues |

## Connect Sentry

[Add a live source](https://docs.lightdash.com/integrations/live-sources/set-up-and-manage.md#connect-a-live-source), select **Sentry**, and enter the **Organization and projects**, such as `acme/mobile-ios,mobile-android`, and the **Auth token**.

![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](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/sentry-config.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=fb61d9c97fffc61890bc10ac998abd99)

## Semantic layer

### Errors

This explore counts the error and crash events of one Sentry organization by project, release, issue and day. Dates are in UTC

| Field | Description |
| - | - |
|  Date | This is the day of the events, in UTC |
|  Project | This is the slug of the Sentry project that the event belongs to. A project is an app or a service |
|  Release | This is the release of the app that sent the events |
|  Environment | This is the environment that the event came from. An example is `production` |
|  Level | This is the severity of the events. The values are `fatal`, `error`, `warning`, `info` and `debug` |
|  Issue | This is the short ID of the issue that Sentry put the events in. An example is `MOBILE-1A` |
|  Title | This is the title of the events. It is usually the error type and the message |
|  Error type | This is the type of the error or exception. An example is `EXC_BAD_ACCESS` |
|  Unhandled | This says whether the app failed to handle the error. A crash is an unhandled error |
|  Platform | This is the platform of the app that sent the events. Examples are `cocoa`, `java` and `javascript` |
|  Operating system | This is the name of the operating system. Examples are iOS and Android |
|  Device family | This is the family of the device. Examples are iOS and Pixel |
|  Events | This is the number of error events |
|  Issues | This is the number of distinct issues that the events belong to |
|  Users affected | This is the number of distinct users who had one or more of the events |

### Issues

This explore lists the issues of one Sentry organization that had events in the last 90 days, one row for each issue. An issue is a group of errors or crashes. Dates are in UTC

| Field | Description |
| - | - |
|  Issue | This is the short ID of the issue. An example is `MOBILE-1A` |
|  Title | This is the title of the issue. It is usually the error type and the message |
|  Level | This is the severity of the issue. The values are `fatal`, `error`, `warning`, `info` and `debug` |
|  Status | This is the status of the issue. The values are `unresolved`, `resolved` and `ignored` |
|  Substatus | This says why the issue has its status. Examples are `new`, `ongoing`, `escalating` and `regressed` |
|  Priority | This is the priority that Sentry gave the issue. The values are `high`, `medium` and `low` |
|  Project | This is the slug of the Sentry project that the issue belongs to. A project is an app or a service |
|  Environment | These are the environments that the issue had events in. An example is `production` |
|  Release | These are the releases that the issue had events in |
|  Platform | This is the platform of the app that sent the events. Examples are `cocoa`, `java` and `javascript` |
|  Category | This is the kind of issue. Examples are `error`, `performance` and `feedback` |
|  Unhandled | This says whether the issue has an error that the app failed to handle. A crash is an unhandled error |
|  First seen | This is the day of the first event of the issue, in UTC |
|  Last seen | This is the day of the latest event of the issue, in UTC |
|  Events | This is the number of events of the issue in the last 90 days |
|  Users | This is the number of distinct users that the issue affected in the last 90 days |
|  URL | This is the link to the issue in Sentry |

### Sessions

This explore reads release health from one Sentry organization. It gives sessions, users and crash-free rates by project, release, environment and day. Dates are in UTC

| Field | Description |
| - | - |
|  Date | This is the day of the sessions, in UTC |
|  Project | This is the slug of the Sentry project that the session belongs to. A project is an app or a service |
|  Release | This is the release of the app that the sessions ran on |
|  Environment | This is the environment that the session came from. An example is `production` |
|  Session status | This says how the sessions ended. The values are `healthy`, `errored`, `unhandled`, `crashed` and `abnormal` |
|  Sessions | This is the number of sessions |
|  Users | This is the number of distinct users with one or more sessions |
|  Crash-free sessions | This is the share of sessions that did not end in a crash |
|  Crash-free users | This is the share of users who had no crash |

## Limits

| Limit | Value |
| - | - |
| Projects per source | 20 |
| Most rows per query | 999 |
| Lookback | 90 days, or 30 on Sentry's Developer plan |
| Default date range | Last 30 days, when an Errors or Sessions query has no filter on Date |

A query that would return more than 999 rows is refused. Narrow the date range, add a filter or remove a dimension.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.