---
title: 'Sentry Integration'
url: 'https://info.srv.kowal.co/docs/magento/modules/sentry'
markdown: 'https://info.srv.kowal.co/docs/magento/modules/sentry.md'
lang: en
date: '2026-11-30'
description: 'Track PHP and browser errors with separate Sentry DSNs. Label events by environment and release, then send a test event to verify the setup.'
taxonomy:
  category:
    - docs
    - Magento
    - Modules
  tag:
    - monitoring
    - operations
---

# Sentry Integration

**Composer** `kowal/module-sentry` · **Version** 1.0.8

## Product page

[Sentry Integration — kowal.co](https://kowal.co/kowal-sentry-integration-for-magento-2)

## Description

Sends Magento events to Sentry so teams can investigate backend and browser errors by environment and release.

## For whom

For developers and operation teams investigating PHP errors, JavaScript failures and cron activity.

## Features

- PHP backend monitoring and separate browser configuration.
- Environment and release tags.
- Commands for testing error events, transactions and cron check-ins.

## Installation

From the Magento root, with Composer access to the Kowal package, run

```sh
composer require kowal/module-sentry
bin/magento module:enable Kowal_Sentry
bin/magento setup:upgrade
bin/magento cache:clean
```

## Configuration

1. Under **Stores → Configuration → Kowal → Sentry → General**, enable the module and give the environment a distinct name such as `staging`.
2. Under **Backend SDK**, enable monitoring and enter the project DSN. Paste the DSN URL by itself, without an SDK initialization snippet.
3. To collect browser events, configure the **Frontend DSN** separately. Save and refresh the configuration cache.

## Requirements / notes

The package requires PHP matching `^8.1`, `kowal/base` and `sentry/sentry ^4.24`. Composer installs it under `vendor/kowal/module-sentry`.

## FAQ

**Why is a backend test missing from the expected project?**

Compare the **Backend DSN** with the project you are viewing in Sentry. Check the backend monitoring switch, error sample rate and environment filter.

## Verify the installation

```sh
bin/magento module:status Kowal_Sentry
```

On staging, enable **Enable Test Commands** and run `bin/magento kowal:sentry:test:error`. Find the event in the target Sentry project and compare its environment with the value configured in Magento.

---

## Navigation

- Parent: [Magento 2 Extensions](https://info.srv.kowal.co/docs/magento/modules.md)
- Previous: [Discount Rule per Product](https://info.srv.kowal.co/docs/magento/modules/discount-rule-per-product.md)
- Next: [SEO Rich Data](https://info.srv.kowal.co/docs/magento/modules/seo-rich-data.md)
