Sentry is a powerful error tracking and performance monitoring tool that helps developers identify, diagnose, and resolve issues in their applications.
This multi-faceted software offers a range of features that will help you manage errors with greater ease and ultimately ensure your application is running smoothly.
Core Features
- Error Tracking: Instantly captures and logs errors as they occur in your application
- Performance Monitoring: Tracks application performance to identify slowdowns and bottlenecks
- Detailed Reports: Provides comprehensive insights into errors, including stack traces and context
- Alerts and Notifications: Send and customize event-triggered notifications
- Issue Grouping, Filtering and Search: Automatically groups similar errors, and allows filtering and searching issues by custom criteria
- Breadcrumbs: Records user actions and events leading up to an error
- Integrations: Connects with various tools and services for enhanced workflow and issue management
Installation
yarn add @payloadcms/plugin-sentry
In the plugins array of your Payload config, call the plugin and pass in your Sentry DSN as an option.
import { buildConfig } from 'payload/config'
2import { sentry } from '@payloadcms/plugin-sentry'
3import { Pages, Media } from './collections'
4
5const config = buildConfig({
6 collections: [Pages, Media],
7 plugins: [
8 sentry({
9 dsn: 'https://61edebas776889984d323d777@o4505289711681536.ingest.sentry.io/4505357433352176',
10 }),
11 ],
12})
13
14export default config