# Application monitoring

On debug Sentry is not initialized.&#x20;

On release Sentry is initialized in `AppInitializer#initialize` function.

### Initialization

The initialize function is based on `SENTRY_DSN` which is created via BuildKonfig. The secret `DSN` is retrived from the `local.properties` file in `build.gradle`.

Learn more about secrets and BuildKonfig [here](/tech-things/secrets-and-build-config.md).

All you need to do is write the `DSN` of your app in `local.properties` file. You can get this on your Sentry dashboard when you create your project:&#x20;

```
# Sentry
sentry_dsn=
```

### Error logging

On release we use SentryAntilog instead of DebugAntilog and this enables the project to  `captureException` when log level is `ERROR`.

You can find this code on `NapierLogger.kt` file.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appkickstarter.com/features/application-monitoring.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
