frosh/sentry-bundle
Composer 安装命令:
composer require frosh/sentry-bundle
包简介
Integrates the Sentry SDK into Shopware
README 文档
README
This plugin integrates the Sentry error tracking service into Shopware 6.
Installation
composer require "frosh/sentry-bundle:*" "sentry/sentry-symfony:*"
Then, in config/bundles.php add
Sentry\SentryBundle\SentryBundle::class => ['all' => true], Frosh\SentryBundle\ShopwareSentryBundle::class => ['all' => true],
at the end of the $bundles array.
Symfony Flex might have added the SentryBundle as 'dev' => true already. Adapt this.
Configuration
After installation, create a config/packages/sentry.yaml file in your Shopware installation and add the following configuration:
parameters: env(SENTRY_DSN): '' env(SENTRY_RELEASE): '' env(SENTRY_ENVIRONMENT): '%kernel.environment%' # Tells Shopware to forward traces to Sentry shopware: profiler: integrations: - Sentry sentry: dsn: "%env(SENTRY_DSN)%" tracing: enabled: true dbal: enabled: false cache: enabled: false twig: enabled: false http_client: enabled: true messenger: enabled: true options: # Do not sent deprecations to sentry error_types: E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED integrations: # Use default exception ignore list of Shopware - 'Frosh\SentryBundle\Integration\UseShopwareExceptionIgnores' environment: '%env(SENTRY_ENVIRONMENT)%' release: '%env(SENTRY_RELEASE)%' # Trace 10% of requests traces_sample_rate: 0.1 frosh_sentry: # Optional: Report scheduled tasks status to Sentry. See https://docs.sentry.io/product/crons/ for more information and check pricing before enabling this feature. report_scheduled_tasks: false storefront: # optional: if you want track errors occurs within the browser (javascript/cors/csp) enabled: true # optional: if you want record the user sessions. Please aware the GDPR. replay_recording: enabled: true sample_rate: 0.1 # optional: if you want measure the performance within the browser tracing: enabled: true sample_rate: 0.1 # you should always specify a sdk version. If you do not provide any version, a hard-coded version got used. We try to keep the version up to date with the latest version, but cause the fast release-line of the javascript SDK it is recommend to update the version number regularly. javascript_sdk_version: "8.26.0"
Test
The sentry-symfony bundle provides a test command. Execute it!
bin/console sentry:test
Pictures
frosh/sentry-bundle 适用场景与选型建议
frosh/sentry-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 165.44k 次下载、GitHub Stars 达 21, 最近一次更新时间为 2024 年 03 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「error」 「monitoring」 「sentry」 「shopware」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 frosh/sentry-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 frosh/sentry-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 frosh/sentry-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Fork of a PHP client for Sentry (http://getsentry.com) that work also with php5.2
An implementation of the Sentry User Manager for Laravel.
A Symfony bundle for chameleon-system/sanitycheck
Simple Yii2 Sentry target for logging (http://getsentry.com)
SoftWax Health Check Bundle for Symfony framework
1Pilot client for Symfony
统计信息
- 总下载量: 165.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-04