# Sentry

This guide will walk you through how to setup [Sentry](https://sentry.io/) to track errors and issues of your Bifrost relayer.

## Sentry Setup

To setup Sentry, you should first create an account and login to [https://sentry.io](https://sentry.io/). Then, you will be redirected to your Sentry dashboard. You will now have to create a new project for your Bifrost relayer. Access the “Projects” tab and then create a new project as below. You should set the platform to "RUST". However the alert frequency and project name is freely available to be customized.

<figure><img src="https://3596680066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FISx9P4kYm2Zecfailc61%2Fuploads%2FqkOQG5hJAPfnYlaER6CC%2Fimage.png?alt=media&#x26;token=d71ab69d-6d71-4506-862e-f63162b71298" alt=""><figcaption></figcaption></figure>

You will now see your created project in the “Projects” tab. Access to your new project and go to the settings tab. Then on the left-hand side, you will see “Client Keys (DSN)” tab. On the page, you will see your project’s DSN key. Copy and paste your DSN key to `sentry_config.dsn` in your relayer’s configuration YAML file, and then restart the service.

<figure><img src="https://3596680066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FISx9P4kYm2Zecfailc61%2Fuploads%2F3vEAqqaemOKRa5I3T6ul%2Fimage.png?alt=media&#x26;token=26bcdb14-84e5-49d2-a240-35a99cbf2af6" alt=""><figcaption></figcaption></figure>

Sentry is now ready to go. Whenever any new issue occurs, the error information will be displayed in your project’s dashboard and alerts will be notified to your target destination (Slack, Email, etc).


---

# 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.bifrostnetwork.com/bifrost-network/running-a-node/system-monitoring/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.
