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

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

liangguifeng/sentry
===================

The sentry component for Hyperf.

v3.1.78.4(3mo ago)04↓100%MIT

Since Nov 29Pushed 2d agoCompare

[ Source](https://github.com/liangguifeng/sentry)[ Packagist](https://packagist.org/packages/liangguifeng/sentry)[ RSS](/packages/liangguifeng-sentry/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (13)Versions (256)Used By (0)

Sentry
======

[](#sentry)

[![Latest Version](https://camo.githubusercontent.com/e456929dba260a60cd44e3250505b1d02762f87c569525712392fda1fbbbae70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667269656e64736f666879706572662f73656e7472792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/friendsofhyperf/sentry)[![Total Downloads](https://camo.githubusercontent.com/0d2238ad01ff02e5f91e07b83083558a54d0cf4be7be4dbdc6537c7d9bb38f6f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667269656e64736f666879706572662f73656e7472792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/friendsofhyperf/sentry)[![GitHub license](https://camo.githubusercontent.com/3b18112e0211a14d51dd3d7001bc91ae5a777388253966486bdf9a5d42b01ed9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f667269656e64736f666879706572662f73656e747279)](https://github.com/friendsofhyperf/sentry)

The sentry component for Hyperf.

Installation
------------

[](#installation)

```
composer require friendsofhyperf/sentry
```

Publish Config File
-------------------

[](#publish-config-file)

```
php bin/hyperf.php vendor:publish friendsofhyperf/sentry
```

Enable Request Lifecycle
------------------------

[](#enable-request-lifecycle)

```
# config/autoload/server.php
return [
    // ...
    'servers' => [
        [
            'name' => 'http',
            'type' => Server::SERVER_HTTP,
            'host' => '0.0.0.0',
            'port' => 9501,
            'callbacks' => [
                Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],
            ],
            'options' => [
                'enable_request_lifecycle' => true,
            ],
        ],
    ],
    // ...
];
```

Register Logger Handler
-----------------------

[](#register-logger-handler)

```
