frosh / sentry-bundle
将 Sentry SDK 集成到 Shopware 中
0.1.6
2024-04-12 14:58 UTC
Requires
- sentry/sentry-symfony: ^4.0 || ^5.0
- shopware/core: ~6.5.0 || ~6.6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.51
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-symfony: ^1.3
README
此插件将 Sentry 错误跟踪服务集成到 Shopware 6 中。
安装
composer require "frosh/sentry-bundle:*" "sentry/sentry-symfony:*"
配置
安装后,在您的 Shopware 安装中创建一个 config/packages/sentry.yaml
文件并添加以下配置
parameters: env(SENTRY_DSN): '' env(SENTRY_RELEASE): '' # 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: integrations: # Use default exception ignore list of Shopware - 'Frosh\SentryBundle\Integration\UseShopwareExceptionIgnores' environment: '%kernel.environment%' release: '%env(SENTRY_RELEASE)%' # Trace 10% of requests traces_sample_rate: 0.1 # Optional: Report scheduled tasks status to Sentry. See https://docs.sentry.io/product/crons/ for more information and check pricing before enabling this feature. frosh_sentry: report_scheduled_tasks: false