← All platforms

Pyramid error tracking

Your Pyramid app has grown its own way. Keep it that way. The Sentry Python SDK connects its error reports to Telebugs on your server.

~/hoofnotes  pip install sentry-sdk
~/hoofnotes  nvim hoofnotes/__init__.py
import sentry_sdk
sentry_sdk.init(
# Copy the complete Telebugs DSN, key and path included.
dsn="YOUR_TELEBUGS_DSN",
)
~/hoofnotes  pserve development.ini

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep sentry-sdk and change its destination to your Telebugs DSN. Your error reports stay on your server. You don’t need a Sentry account.

Do I have to change how my app is assembled?

No. The SDK’s Pyramid integration fits into your existing application. Unhandled view exceptions can reach Telebugs with their request context and backtrace.

What about an error I handle myself?

It can still be worth investigating. Send it with sentry_sdk.capture_exception and keep its backtrace alongside the errors the integration captures.