sxlxnyw / hyperf-sentry
V2.2.3
2021-08-21 03:17 UTC
Requires
- php: >=7.3
- ext-swoole: >=4.5
- hyperf/di: 2.2.*
- hyperf/framework: 2.2.*
- sentry/sdk: ^2.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- hyperf/database: 2.1.*
- hyperf/testing: 2.1.*
- monolog/monolog: ^2.0
- phpstan/phpstan: ^0.12
- swoft/swoole-ide-helper: dev-master
This package is not auto-updated.
Last update: 2025-02-01 22:03:14 UTC
README
说明
sentry/sdk
中导出都是静态属性,这个些操作在 swoole
的携程环境中会出现数据异常,所以涉及到的部分都需要 rewrite
, 因为 sentry/sdk
中的类大部分都是 final
的。
版本
主版本和 hyperf 保持一致
使用
- 配置文件
发布: php bin/hyperf.php vendor:publish minbaby/hyperf-sentry
然后在 .env
中添加 SENTRY_DSN=
- 注册
SentryExceptionHandler
return [ 'handler' => [ 'http' => [ Minbaby\HyperfSentry\SentryExceptionHandler::class, App\Exception\Handler\AppExceptionHandler::class, ], ], ];