# Sentry + Encore

DevFeed: [Sentry + Encore](<https://devfeed.tech/articles/sentry-encore-17841.md>)

Original publisher: [Read original article](<https://encore.dev/blog/sentry-tutorial>)

Author: Ivan Cernja

Published: 2026-04-29T00:00:00Z

Content type: tutorial

Language: en

Sources: [Encore Updates](<https://devfeed.tech/sources/encore-updates.md>)

Topics: [Error Handling](<https://devfeed.tech/topics/error-handling.md>), [backend frameworks](<https://devfeed.tech/topics/backend-frameworks.md>), [api server](<https://devfeed.tech/topics/api-server.md>), [SDK](<https://devfeed.tech/topics/sdk.md>)

Tags: [alerts](<https://devfeed.tech/tags/alerts.md>), [api](<https://devfeed.tech/tags/api.md>), [app](<https://devfeed.tech/tags/app.md>), [application](<https://devfeed.tech/tags/application.md>), [auth](<https://devfeed.tech/tags/auth.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [backend](<https://devfeed.tech/tags/backend.md>), [bug](<https://devfeed.tech/tags/bug.md>), [built-in](<https://devfeed.tech/tags/built-in.md>), [business-logic](<https://devfeed.tech/tags/business-logic.md>), [context](<https://devfeed.tech/tags/context.md>), [dashboard](<https://devfeed.tech/tags/dashboard.md>), [database](<https://devfeed.tech/tags/database.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [development](<https://devfeed.tech/tags/development.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [error](<https://devfeed.tech/tags/error.md>), [error-tracking](<https://devfeed.tech/tags/error-tracking.md>), [sentry](<https://devfeed.tech/tags/sentry.md>), [services](<https://devfeed.tech/tags/services.md>)

## AI overview

The tutorial excerpt describes adding Sentry error tracking to an Encore.ts backend while leaving tracing and request routing to Encore. It proposes storing the Sentry DSN with Encore's secret manager, initializing the SDK once in a shared library, and using a reusable wrapper to capture unhandled endpoint errors with context instead of adding try/catch boilerplate everywhere. A breadcrumb before endpoint work helps provide a timeline when errors occur. The example includes health, processing, and deliberate-error endpoints to check that Sentry reports an error with a stack trace and tag. Commands and code are omitted from the supplied excerpt.

## Source excerpt

Error tracking for your backend services