PHPackages                             brainbits/monolog-sentry - 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. brainbits/monolog-sentry

Abandoned → [sentry/sentry-symfony](/?search=sentry%2Fsentry-symfony)Library[Logging &amp; Monitoring](/categories/logging)

brainbits/monolog-sentry
========================

brainbits sentry

3.1.1(9mo ago)041.7k3[13 PRs](https://github.com/brainbits/monolog-sentry/pulls)proprietaryPHPPHP ^8.3CI passing

Since Aug 4Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/brainbits/monolog-sentry)[ Packagist](https://packagist.org/packages/brainbits/monolog-sentry)[ RSS](/packages/brainbits-monolog-sentry/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (20)Versions (27)Used By (0)

brainbits/monolog-sentry
========================

[](#brainbitsmonolog-sentry)

This package provides a opiniated factory for bgalati/monolog-sentry-handler, based on the provided [symfony guide](https://github.com/B-Galati/monolog-sentry-handler/blob/main/doc/guide-symfony.md).

Required configuration:

```
# brainbits_monolog_sentry.yaml

parameters:
    env(SENTRY_DSN): ''
    env(SENTRY_ENVIRONMENT): ''

services:
    _defaults:
        autowire: true
        autoconfigure: true

    Brainbits\MonologSentry\SentryFactory: ~

    Sentry\State\HubInterface:
        factory: ['@Brainbits\MonologSentry\SentryFactory', 'create']
        arguments:
            $dsn: '%env(SENTRY_DSN)%'
            $environment: '%env(SENTRY_ENVIRONMENT)%'
            $inAppInclude: ['%kernel.project_dir%/src']
            $inAppExclude: ['%kernel.cache_dir%', '%kernel.project_dir%/vendor']
            $prefixes: ['%kernel.project_dir%']
            $release: 'web-%app_version%'
            $tags:
                foo: bar
            $logger: '@logger'

    # or

    Sentry\State\HubInterface:
        factory: ['@Brainbits\MonologSentry\SentryFactory', 'createFromOptions']
        arguments:
            $options:
                dsn: '%env(SENTRY_DSN)%'
                environment: '%env(SENTRY_ENVIRONMENT)%'
                inAppInclude: ['%kernel.project_dir%/src']
                inAppExclude: ['%kernel.cache_dir%', '%kernel.project_dir%/vendor']
                prefixes: ['%kernel.project_dir%']
                release: 'web-%app_version%'
                tags:
                    foo: bar
                logger: '@logger'

    Controlling\Sentry\Sentry\SentryHandler: ~

    Controlling\Sentry\EventListener\SentryConsoleListener: ~
    Controlling\Sentry\EventListener\SentryRequestListener:
    Controlling\Sentry\EventListener\SentryUserListener:
    Controlling\Sentry\EventListener\MonologResetterEventListener: ~
```

Example monolog configuration:

```
# monolog.yaml

when@prod:
    monolog:
        handlers:
            sentry:
                type: fingers_crossed
                process_psr_3_messages: true
                action_level: warning
                handler: sentry_buffer
                excluded_http_codes: [400, 401, 403, 404, 405]
                buffer_size: 100 # Prevents memory leaks for workers
                channels: ["!event", "!security"]
            sentry_buffer:
                type: buffer
                handler: sentry_handler
            sentry_handler:
                type: service
                id: 'Brainbits\MonologSentry\SentryHandler'
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance65

Regular maintenance activity

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~121 days

Recently: every ~194 days

Total

10

Last Release

291d ago

Major Versions

1.0.2 → 2.0.02023-01-03

2.1.1 → 3.0.02024-03-08

PHP version history (3 changes)1.0.0PHP ^8.1

2.1.0PHP ^8.2

3.1.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a25dcc661a3094c990b37332c58b8b7a085666f4b830dff8762d86c0e786c2b?d=identicon)[brainbits](/maintainers/brainbits)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (8 commits)")[![temp](https://avatars.githubusercontent.com/u/216128?v=4)](https://github.com/temp "temp (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/brainbits-monolog-sentry/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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