PHPackages                             pbergman/sentry-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. pbergman/sentry-bundle

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

pbergman/sentry-bundle
======================

Monolog sentry handler with support for breadcrumbs and sentry dispatching events

2.0.4(2y ago)01.5k↓88.9%PHPPHP &gt;=7.4.0

Since Dec 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pbergman/sentry-bundle)[ Packagist](https://packagist.org/packages/pbergman/sentry-bundle)[ RSS](/packages/pbergman-sentry-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)Dependencies (2)Versions (11)Used By (0)

Sentry Bundle
-------------

[](#sentry-bundle)

I have created this bundle because the [entry/sentry-symfony](https://github.com/getsentry/sentry-symfony) was not using the batch handler from monolog when connected with a buffer handler. This resulted in all messaged from a request being delivered individually instead of using breadcrumbs.

So with this extension you could configure monolog like this:

```
    handlers:
        main:
            type: fingers_crossed
            action_level: error
            handler: grouped
            excluded_http_codes: [404, 405]
        grouped:
            type: whatfailuregroup
            members: [ streamed, sentry_deduplicated ]
        streamed:
            type: stream
            path: "%kernel.logs_dir%/%kernel.environment%.log"
            level: debug
        sentry_deduplicated:
            type:    deduplication
            handler: sentry
        sentry:
            type: service
            id: pbergman.sentry_handler

```

And when the fingercrossed handler get an error message, all messages in the buffer of INFO or higher will be grouped and send to sentry.

This bundle has also created a bridge between the native hooks ([before\_breadcrumb an before\_send](https://docs.sentry.io/platforms/php/configuration/options/#hooks)) and symfony dispatcher. So now you can just create listener that listens to `PBergman\Bundle\SentryBundle\Events::EVENT_BEFORE_SEND` or `PBergman\Bundle\SentryBundle\Events::EVENT_BEFORE_BREADCRUMB`

By default it will create a listener that will filter exception classes (see `bin/console config:dump-reference p_bergman_sentry`) to disable add the following config:

```
p_bergman_sentry:
    excluded_exceptions: ~

```

Or set there the desired classes.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~97 days

Recently: every ~0 days

Total

10

Last Release

741d ago

Major Versions

1.1.1 → 2.0.02024-05-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce73225a1c546feb93edc48c4b5d514a909aecceddc0fe0a021d4a42d2077e09?d=identicon)[pbergman](/maintainers/pbergman)

---

Top Contributors

[![pbergman](https://avatars.githubusercontent.com/u/1193198?v=4)](https://github.com/pbergman "pbergman (11 commits)")

### Embed Badge

![Health badge](/badges/pbergman-sentry-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/pbergman-sentry-bundle/health.svg)](https://phpackages.com/packages/pbergman-sentry-bundle)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)[oneup/contao-sentry-bundle

This bundle provides an easy integration of sentry.io for Contao 4.4.x and newer.

1114.8k](/packages/oneup-contao-sentry-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
