Skip to content

Files

Latest commit

7a1dd4d · Apr 2, 2025

History

History

sentry

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 this directory to start the worker:

uv run worker.py

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

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