frosh/sentry-bundle

Integrates the Sentry SDK into Shopware

0.1.6 2024-04-12 14:58 UTC

This package is auto-updated.

Last update: 2024-04-12 17:47:15 UTC


README

This plugin integrates the Sentry error tracking service into Shopware 6.

Installation

composer require "frosh/sentry-bundle:*" "sentry/sentry-symfony:*"

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:
        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

Pictures

img

img