Application Monitoring by Sentry
Sentryis a developer-first application monitoring platform that helps you identify and fix software problems before they impact your users. Through our partnerships with Sentry, each of your Fly organizations can claim a year’s worth ofTeam Plancredits.
To configure your application to use Sentry, run this command from your Fly.io application directory.
flyctl ext sentry create
Use this command to open the dashboard for the Sentry project associated with the current application.
flyctl ext sentry dashboard
This will:
- Create a Sentry account using your Fly.io email address
- Create a Sentry organization mapped to your Fly.io organization
- Set
SENTRY_DSN
as a secret on your app
SENTRY_DSN
is available as an environment variable. The Sentry SDK will detect and use it automatically.
Sentry Plan details
This promotional plan includes, monthly:
- 50k errors
- 100kperformance units
- 500session replays
- 1GBattachments
If you need more than this, sign in to your Sentry account and review upgrade options in theSettings > Usage & Billing > Subscriptionsection.
Note that if you upgrade from this plan, you may not downgrade back to the promotional Team plan.
Instrumenting your application with the Sentry SDK
Next, you should instrument your application to start sending exceptions and other events to Sentry.
Ruby on Rails
Runningbin/rails generate dockerfile --sentry
will:
- Install theRuby Sentry SDKrubygem
- Add an initializer for automatic exception handling and performance tracing
Sentry can also instrument specific libraries like Sidekiq, Delayed Job, Resque, and more. Check theSentry Ruby documentationfor more information.
Other runtimes and frameworks
Learn how to set up your application with the Sentry SDK for your runtime in their comprehensivedocumentation.