定制 onedrop/shopware-sentry 二次开发

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

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

onedrop/shopware-sentry

最新稳定版本:2.2.0

Composer 安装命令:

composer require onedrop/shopware-sentry

包简介

Sentry integration for Shopware

README 文档

README

What is Sentry

Sentry is a modern error tracking platform. You can log and trace errors in Sentry and collect directly feedback from user.

Detail

Sentry can:

  • show error traces
  • notify on Slack, Jira, GitHub, GitLab, HipChat, etc.
  • use business rules (error must occure more than twice in 24h)
  • do reporting
  • track error occurrences with releases
  • be easily self-hosted with docker

What this plugin does

This plugin gives you the possibility to collect errors that occured in Shopware to a custom Sentry project.

  • collects PHP errors in frontend and backend (can be switched on/off)
  • collects JS errors in frontend (can be switched on/off)
  • collect user feedback in the frontend if a PHP error occured (can be switched on/off)

Configuration

User Feedback

If you enable it and a catchable error occurs, the user will be asked to provide additional feedback:

User Feedback

Installation

Requires PHP >= 7.1 !!

Load plugin

Composer (Shopware 5.5+)

  • Install via composer composer require onedrop/shopware-sentry

Git Version

  • Checkout plugin in git clone https://github.com/1drop/shopware-sentry.git custom/plugins/OdSentry
  • Install dependencies composer install

Shopware plugin store

Plugin can be ordered for free in your plugin manager or in Shopware plugin store

Install plugin

CLI

  • Install plugin php ./bin/console sw:plugin:install OdSentry
  • Get plugin config php ./bin/console sw:plugin:config:list OdSentry (based on custom/plugins/OdSentry/Resources/config.xml)
  • Set plugin config e.g. php ./bin/console sw:plugin:config:set OdSentry sentryLogPhp true
  • Activate plugin php ./bin/console sw:plugin:activate OdSentry
  • (optional) Clear cache php ./bin/console sw:cache:clear

Web

  • Install the plugin with the "Plugin Manager"
  • Configure the plugin

Skip Exceptions

Since 1.1.1 it is possible to skip exceptions for capture add following snippet to our config.php

'sentry' => [
    'skip_capture' => [
        Symfony\Component\Console\Exception\CommandNotFoundException::class,
        Enlight_Controller_Exception::class,
//        Shopware\Components\Api\Exception\NotFoundException:class,
        MyCustomException::class
    ]
]

Authors

  • Hans Höchtl <hhoechtl[at]1drop.de>
  • Soner Sayakci <s.sayakci[at]gmail.com>

统计信息

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

GitHub 信息

  • Stars: 20
  • Watchers: 5
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-31