✨ Strapi MCP is now Generally Available - let your agents manage your Strapi content ✨

Introducing the official Sentry plugin for Strapi

â—ŹFebruary 18, 2021â—ŹUpdated on May 22, 2026

Note: this article has been updated for Strapi v4. To find instructions about the v3 version of this plugin, check out its page on npm.

Back in October, we ran a survey across the Strapi community. Your feedback was clear: plugins are essential to your workflow. They give you the option to expand Strapi's core capabilities as you see fit. They allow you to connect your favorite tools to your CMS, and build better, more ambitious apps with Strapi.

We also share that vision. Our plan for Strapi is to have an open marketplace showcasing quality plugins. That's why in 2021, we'll be focusing on building an ecosystem of plugins, by working with both partners and you, the community. Today, we're starting that journey with a highly requested plugin: Sentry 🎉

What's Sentry, and why you should care

Sentry allows developers to ensure the quality of their applications. It logs errors and gives you all the context you need to identify the source of the problem. Thanks to Sentry, You can identify the previous events that led to an error, and what commit introduced the bug. And once you can reproduce an issue, fixing it becomes much simpler.

This plugin lets you benefit from all these Sentry features within your Strapi app. Once you install it, the Sentry plugin will:

  • Initialize a Sentry instance when your Strapi app starts
  • Send errors encountered in your application's end API to Sentry
  • Attach useful metadata to Sentry events, to help you with debugging
  • Expose a global Sentry service

How to use it

Sentry has always been a solution of choice among our users. Our users have been manually setting it up in their apps for years. But from now on, using it in Strapi is as easy as installing the package:

# Using Yarn
yarn add @strapi/plugin-sentry

# Or using NPM
npm install @strapi/plugin-sentry

Then, you'll need to link Strapi to your Sentry project. Find your data source name (DSN) on your Sentry app.

Then, enter that DSN in your app's config/plugins.js file.

module.exports = ({ env }) => ({
  // ...
  sentry: {
    enabled: true,
    config: {
      dsn: env('SENTRY_DSN'),
    },
  },
  // ...
});

That's it, restart your app and you're good to go. All your errors will now be logged on Sentry!

Now, let’s take a look at how we can use this plugin in a real-world application.

Find the plugin on GitHub

We want to make Strapi the most customizable and open CMS. That’s why you can find this plugin’s source code on GitHub. There, you’ll find all the documentation you need to adapt or extend the plugin to suit your needs.

You can give us your feedback using GitHub issues, or by reaching out on Twitter. And your contributions are always welcome, so don’t hesitate to submit a pull request. We’ll be happy to review it!

Rémi De JuvignyFull-Stack Developer

As part of the expansion team, Rémi's role is to help building and structuring the Strapi ecosystem, through projects like starters, plugins or the Strapi Market.

Join our Newsletter

Get all the latest news and events.

Newsletter signup is not configured yet.

MUX Video Uploader Plugin and Strapi
Custom plugins & Marketplace·5 min read

Integrating Mux Video Uploader Plugin with Strapi and Next.js

Learn how to integrate Mux Video Uploader plugin with Strapi and Next.js to manage and display video content effortlessly.

·July 1, 2024
New Community Plugin: API Monitoring and Observability
Custom plugins & MarketplaceBeginner·2 min read

New Community Plugin: API Monitoring and Observability

Introducing Treblle plugin for Strapi - monitor requests to APIs in real-time, track API performance, and collaborate in their evolution.

·May 23, 2023
Custom plugins & Marketplace·7 min read

Announcing Custom fields and updated API Token in Strapi v4.4

Explore Strapi v4.4's new Custom Fields and upgraded API Token for enhanced customization and security. #Strapi

·September 29, 2022