Error Tracking with Sentry

May 30, 2026 | 5 min read

Basic Integration

import sentry_sdk

sentry_sdk.init(dsn="YOUR_DSN")

def risky_computation(data):
    try:
        return compiled_compute(data)
    except Exception as e:
        sentry_sdk.capture_exception(e)
        raise

Breadcrumbs

from sentry_sdk import add_breadcrumb

def process_pipeline(stages):
    for stage in stages:
        add_breadcrumb(category='pipeline', message=f'Running {stage}')
        run_stage(stage)

Correctness Mismatch Alerts

Send a Sentry event when Pyvorin detects a correctness mismatch:

if not correctness_match:
    sentry_sdk.capture_message(
        f"Pyvorin mismatch in {workload_hash}",
        level="error"
    )