Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 607 Bytes

File metadata and controls

16 lines (12 loc) · 607 Bytes

Using sentry-python with Uptrace

Uptrace is compatible with the Sentry SDK, so you can use sentry-python to send errors to Uptrace by pointing the Sentry DSN at your Uptrace project.

To run this example, create an Uptrace project to obtain a DSN and run:

pip install -r requirements.txt
UPTRACE_DSN=https://<token>@api.uptrace.dev/<project_id> python3 main.py

Then search for RuntimeError in your Uptrace project. The reported event contains the full nested exception chain (RuntimeError caused by KeyError).