定制 avh/glitchtip 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

avh/glitchtip

最新稳定版本:1.0.0

Composer 安装命令:

composer require avh/glitchtip

包简介

GlitchTip/Sentry error tracking integration for Shopware

README 文档

README

Description: Integrates GlitchTip (Sentry-compatible) as an error tracking backend into Shopware 6.6 and 6.7. Errors are automatically captured and sent to a self-hosted GlitchTip instance.

Audience: Developers, Project Managers

Setup

  1. Prerequisites:

    • Shopware 6.6 or 6.7
    • PHP 8.2+
    • Access to a GlitchTip instance with a valid DSN
  2. Installation:

composer require avh/glitchtip:
php bin/console plugin:refresh
php bin/console plugin:install --activate AvhGlitchtip
php bin/console cache:clear

Configuration

The plugin supports two configuration paths. Admin settings always take precedence.

Priority Source Description
1 (highest) Admin Panel Settings > Extensions > AvhGlitchtip
2 Environment Variable GLITCHTIP_DSN in .env or .env.local
3 Defaults Environment and release are auto-detected

Option A: Environment Variable

Add to .env.local:

GLITCHTIP_DSN=https://key@glitchtip.example.com/1

The plugin picks up the DSN automatically. No further configuration required.

Option B: Admin Panel

  1. Open Settings > Extensions > AvhGlitchtip.
  2. Enable Enable Error Tracking.
  3. Enter the DSN from your GlitchTip project.
  4. Optional: adjust environment, release and sampling rates.

Note: When the plugin is enabled via Admin (enabled = true), the DSN configured there fully overrides the environment variable.

Settings Overview

GlitchTip Connection:

Field Type Default Description
Enable Error Tracking Bool false Activates admin-driven configuration
DSN Password DSN from your GlitchTip project
Environment Text auto Overrides APP_ENV
Release Text auto Overrides shopware@{version}

Sampling:

Field Type Default Description
Error Sample Rate Float 1.0 Proportion of errors captured (0.0–1.0)
Traces Sample Rate Float 0.0 Performance traces (0.0–1.0)
Send PII Bool false Send personally identifiable information (consider GDPR)

Structure

AvhGlitchtip/
├── composer.json
└── src/
    ├── AvhGlitchtip.php                  # Plugin class, registers SentryBundle
    ├── Subscriber/
    │   └── SentryConfigSubscriber.php     # Runtime configuration from admin settings
    └── Resources/config/
        ├── services.xml                   # DI container
        ├── config.xml                     # Admin panel fields
        └── packages/
            └── sentry.yaml               # Static Sentry bundle configuration

Important Notes

  • GDPR: Send PII is disabled by default. Only enable after consulting your data protection officer.
  • Filtered Exceptions: The plugin suppresses common bot and Shopware errors (404, not logged in, bad credentials, product not found) to reduce noise in GlitchTip.
  • Performance Tracing is disabled by default (0.0). Enabling it significantly increases data volume in GlitchTip — increase gradually (e.g. 0.1).
  • Deactivation: Setting enabled to false in the Admin disables Sentry completely — even if a GLITCHTIP_DSN environment variable exists.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固