Sentry Configuration#
Authentication#
Create a Sentry Internal Integration:
Open Settings > Developer Settings > Custom Integrations > Create New Integration.
Select Internal Integration.
Save the integration and copy its generated token into an environment variable.
Required Permissions#
Grant the integration these scopes:
org:readmember:readproject:readproject:releasesalerts:readteam:read
Configure Cartography#
Provide these options:
--sentry-token-env-var: Name of the environment variable containing the integration token.--sentry-org: Organization slug from a URL such ashttps://sentry.io/organizations/<slug>/.
Run Cartography#
export SENTRY_TOKEN='<integration-token>'
cartography \
--selected-modules sentry \
--sentry-token-env-var SENTRY_TOKEN \
--sentry-org '<organization-slug>'
Advanced Configuration#
For a self-hosted instance, set --sentry-host to its host URL. The default is https://sentry.io.