# Using Sentry

Sentry is a widely used tool for real-time error tracking and performance monitoring. If you want to leverage Sentry in your application, follow these steps:

1. **Enable Sentry**: Set the `USE_SENTRY` variable to `True`.
2. **Configure DSN**: Set the `SENTRY_DSN` variable to the DSN provided by Sentry when you set up your account.

```python
USE_SENTRY = False  # Change to True to enable Sentry
SENTRY_DSN = None  # Set this to your Sentry DSN
```

With Sentry enabled, your application will send error reports and performance data to Sentry, allowing you to monitor your application more effectively.


---

# 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.shipwithdjango.com/logging/using-sentry.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.
