Skip to main content

Sentry

The project comes included with error reporting to Sentry, and a pipeline job to upload sourcemaps and create releases. To set this up, we'll need to create a project in Sentry and retrieve the project DSN.

Create Project

Head over to the Create a new Project page in Sentry.

Sentry Platform Select
Under platform, select .NET.

Sentry New Project Name
For the project name, use the project slug from GitLab. Select a fitting team, or create a new one, and hit Create.

You'll be taken to a Configure .NET page. In the code examples, copy the DSN value passed to Sentry.Init, and add it to the configMapGenerator in k8s/overlays/development/kustomization.yaml and k8s/overlays/production/kustomization.yaml.

kustomization.yaml
configMapGenerator:
- name: my-app-config
literals:
- ASPNETCORE_ENVIRONMENT=Development
- SENTRY__DSN=<INSERT DSN HERE>