astrogoat / sentry
使用Sentry监控应用程序错误
1.7.0
2024-07-04 14:53 UTC
Requires
- php: ^8.2
- astrogoat/strata: ^0.7.12
- illuminate/contracts: ^8.37 || ^9.9|^10.0
- sentry/sentry-laravel: ^4.6
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- nunomaduro/collision: ^5.3|^7.0
- orchestra/testbench: ^6.15|^8.5
- pestphp/pest: ^1.18|^2.16
- pestphp/pest-plugin-laravel: ^1.1|^2.2
- spatie/laravel-ray: ^1.23
- vimeo/psalm: ^4.8|^5.15
README
安装
您可以通过composer安装此包
composer require astrogoat/sentry
在您的App\Exceptions\Handler类的register方法中添加以下内容
$this->reportable(function (Throwable $e) { Astrogoat\Sentry\Sentry::captureException($e); });
测试
composer test
发布新版本
使用包含的GitHub动作创建新版本。访问https://github.com/astrogoat/sentry/actions/workflows/release.yml,点击“运行工作流程”下拉菜单,选择您的版本级别提升,然后点击“运行工作流程”按钮。或者如果您在本地安装了GitHub CLI,可以在sentry目录中运行gh workflow run release.yml。
重要:确保Miles Bot用户包含在可以绕过必需拉取请求要求的用户列表中您的repo -> 设置 -> 分支 -> 主(编辑)-> "允许指定操作者绕过必需的拉取请求"。
变更日志
有关最近更改的更多信息,请参阅CHANGELOG。
贡献
有关详细信息,请参阅CONTRIBUTING。
安全漏洞
请审查我们如何报告安全漏洞的安全策略。
鸣谢
许可证
MIT许可证(MIT)。请参阅许可证文件以获取更多信息。