Cortex connects to many third-party vendors whose system interfaces frequently change. As a result, integration behavior or configuration steps may shift without notice. If you encounter unexpected issues, check with your system administrator or refer to the vendor’s documentation for the most current information. Additionally, integration sync times vary and are subject to scheduling overrides and timing variance.
- View errors on entity pages in Cortex, giving you insight into your entity’s operational maturity
- Pull a list of recent Sentry issues directly in Slack, using the Cortex Slack Bot
- Create Scorecards that include rules related to Sentry errors
How to configure Sentry with Cortex
Prerequisites
Before getting started:- Create a personal token in your Sentry user settings.
- The token requires
Readpermissions for the Issue & Event and Project scopes.
- The token requires
Configure the integration in Cortex
- In Cortex, navigate to the Sentry settings page:
- Click Integrations from the main nav. Search for and select Sentry.
- Click Add configuration.
- Configure the integration form:
- Auth token: Enter the personal token you generated in Sentry.
- Organization slug: Enter your Sentry organization slug.
- You can find this in your Sentry URL, e.g.,
https://sentry.io/organizations/{SLUG}/issues/.
- You can find this in your Sentry URL, e.g.,
- Host: If using a self-hosted Sentry instance, enter the URL here without the API path (e.g.,
bugsnag.getcortexapp.com).
- Click Save.
How to connect Cortex entities to Sentry projects
Discovery
By default, Cortex will use the Cortex tag (e.g.,my-entity) as the best guess for Sentry projects. For example, if your Cortex tag is my-entity, then the corresponding project in Sentry should also be my-entity.
If your Sentry projects don’t cleanly match the Cortex tag, you can override this in the Cortex entity descriptor.
Editing the entity descriptor
You can define projects under thex-cortex-sentry block:
Using the Sentry integration
Viewing Sentry errors on an entity
Error data will appear on an entity’s details page. In an entity’s sidebar, click Error tracking to view detected issues for each Sentry project. At the top of the page, see a list of Sentry projects associated with an entity. Each project listed in Cortex links back to the project details page in Sentry. Under the Issues header on the Error tracking page, you’ll find a list of all issues related to the projects that Cortex detected in Sentry. Each issue in the list links back to that issue’s details page in Sentry. Cortex will pull in the title and tags for each issue. Events Sentry issues and events will also appear in an entity’s event timeline, found under Events in the sidebar. This allows users to contextualize Sentry issues with other key data - like deploys or errors discovered from other integrations - during incidents or migrations.Retrieving issues in Slack
If you’ve also configured the Slack integration, you can ask the AI Assistant for an entity’s recent Sentry issues. Mention@Cortex in a channel or direct message and ask a question like “Show me recent Sentry issues for payments-api,” identifying the entity by its Cortex tag.
For setup and usage details, refer to Using the AI assistant.
Scorecards and CQL
With the Sentry integration, you can create Scorecard rules and write CQL queries based on Sentry projects. See more examples in the CQL Explorer in Cortex.Check if Sentry project is set
Check if Sentry project is set
Check if entity has a registered Sentry project.Definition: This can also serve as a way to confirm that entities are synced with Sentry and reporting frequently.
sentry (==/!=) nullExampleFor a production readiness Scorecard, you can use this expression to make sure entities are linked to a Sentry project.Number of events
Number of events
Counts Sentry events for a given custom query to a max of 1,000.If no query is provided, the rule will count
unresolved events by default.Definition: sentry.numOfIssueEvents((<query>))ExampleFor a Scorecard focused on operational maturity, you can check for any unresolved issues that were first seen within a week.Number of issues
Number of issues
Counts Sentry issues for a given custom query to a max of 300.If no query is provided, the rule will count For a Scorecard focused on code quality, you can write a more focused rule to make sure there haven’t been any issues in production environments in the last week.
unresolved issues by default.Definition: sentry.numOfIssues((<query>))ExampleFor a Scorecard focused on operational maturity, you can pull in the number of Sentry issues to make sure entities are functioning as expected.View integration logs
This feature is available in Cortex cloud.

Still need help?↗
The following options are available to get assistance from the Cortex Customer Engineering team:- Email: help@cortex.io, or open a support ticket in the in app Resource Center
- Slack: Users with a connected Slack channel will have a workflow added to their account. From here, you can either @CortexTechnicalSupport or add a
:ticket:reaction to a question in Slack, and the team will respond directly.