-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add sentry support to capture unexpected crashes
doc: add readme entry and sentry doc
- Loading branch information
Showing
5 changed files
with
91 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Sentry | ||
|
||
GoBGP supports Sentry for error and exception tracking. | ||
|
||
To enable Sentry, set the `--sentry-dsn` flag to your Sentry DSN. | ||
|
||
```bash | ||
$ gobgpd --sentry-dsn=<your-dsn> | ||
``` | ||
|
||
In addition, you can set the `--sentry-environment` flag to your Sentry environment. | ||
|
||
```bash | ||
$ gobgpd --sentry-dsn=<your-dsn> --sentry-environment=<your-environment> | ||
``` | ||
|
||
You can also set the `--sentry-sample-rate` flag to the sample rate of Sentry traces. | ||
|
||
```bash | ||
$ gobgpd --sentry-dsn=<your-dsn> --sentry-sample-rate=<your-sample-rate> | ||
``` | ||
|
||
Finally, you can set the `--sentry-debug` flag to enable Sentry debug mode. | ||
|
||
```bash | ||
$ gobgpd --sentry-dsn=<your-dsn> --sentry-debug=true | ||
``` | ||
|
||
When Sentry debug mode is enabled, there is a message logged to Sentry when the program starts. | ||
This is particularly useful to verify that Sentry is working as expected. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters