Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Sentry Sample

This sample shows how to configure Sentry to intercept and capture errors from the Temporal SDK.

For this sample, the optional sentry dependency group must be included. To include, run:

uv sync --group sentry

To run, first see README.md for prerequisites. Set SENTRY_DSN environment variable to the Sentry DSN. Then, run the following from the root directory to start the worker:

uv run sentry/worker.py

This will start the worker. Then, in another terminal, run the following to execute the workflow:

uv run sentry/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.