mmi / mmi-sentry
MMi Sentry 插件
2.0.4
2023-08-01 09:51 UTC
Requires
- php: >=7.4.0
- mmi/mmi: 4.*
- sentry/sdk: 3.*
README
Sentry 插件,与 MMi/MMiCms 4.0+ 兼容
使用方法
- 在您的应用程序的 AppEventInterceptor::init() 中运行 $this->container->get('sentry.service');
- 上述操作可以替换为 $this->container->make('sentry.service');(更美观)
.env 配置
- SENTRY_DSN=https://your-account-id/sentry.io/your-channel-id
- SENTRY_ENABLED=1
- SENTRY_ENVIRONMENT=TEST
- SENTRY_RELEASE=1.0