← All platforms

Chalice error tracking

Chalice puts your Python routes on Lambda. The Sentry integration brings their error reports back to your Telebugs server.

~/hoofnotes  pip install sentry-sdk
~/hoofnotes  nvim app.py
import sentry_sdk
sentry_sdk.init(
# Copy the complete Telebugs DSN, key and path included.
dsn="YOUR_TELEBUGS_DSN",
)
from hoofnotes.api import app
~/hoofnotes  chalice local

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.

Does this fit a Chalice app?

Yes. The Python SDK includes a Chalice integration for errors raised by your handlers. In Lambda, it works with the SDK’s Lambda support to send the reports.

Do I need a different error tracker for local work?

No. Local and deployed apps can report to your Telebugs server. Separate projects or environment labels keep development errors apart from production.