-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
85 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,19 @@ | ||
# Sentry Sample | ||
|
||
This sample shows how to configure [Sentry](https://sentry.io) to intercept & capture errors from the Temporal SDK. | ||
This sample shows how to configure [Sentry](https://sentry.io) to intercept and capture errors from the Temporal SDK. | ||
|
||
For this sample, the optional `sentry` dependency group must be included. To include, run: | ||
|
||
poetry install --with sentry | ||
|
||
To run, first see [README.md](../README.md) for prerequisites. Set `SENTRY_DSN` environment variable to the Sentry DSN. | ||
Then, run the following from this directory to start the worker: | ||
|
||
poetry run python worker.py | ||
|
||
This will start the worker. Then, in another terminal, run the following to execute the workflow: | ||
|
||
poetry run python starter.py | ||
|
||
The workflow should complete with the hello result. If you alter the workflow or the activity to raise an | ||
`ApplicationError` instead, it should appear in Sentry. |
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