frosh/sentry-bundle
最新稳定版本:0.2.2
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): '' # 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: '%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
Test
The sentry-symfony bundle provides a test command. Execute it!
bin/console sentry:test
Pictures
统计信息
- 总下载量: 102.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-04