noone-silent/phalcon-sentry 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

noone-silent/phalcon-sentry

最新稳定版本:v1.2.0

Composer 安装命令:

composer require noone-silent/phalcon-sentry

包简介

Sentry integration for the Phalcon Framework

README 文档

README

Packagist Version

This directory contains the PHP source code for the Phalcon Sentry integration.

Requirements

Installation

composer require noone-silent/phalcon-sentry

Usage

Create a copy of the sentry configuration found under config/sentry.php.

Tip

It is recommended, that you set your events manager before setting the service provider.

$di->set('eventsManager', new \Phalcon\Events\Manager(), true);

Add the following code to your entry script:

$di->register(
    new \Phalcon\Sentry\ServiceProvider(
        $pathTo . '/config/sentry.php'
    )
);

If you're using the Volt template engine, you can use the provided helper to place scripts and tags. The name of sentryHelper is configurable in config/sentry.php.

// Add this between your <head></head>
{{ sentryHelper.getMetaTag() }}
// Add this right before your </body>
{{ sentryHelper.getScript() }}

You can also pass options to the getScript() helper:

{{ sentryHelper.getScript(
    [
        'Sentry.browserTracingIntegration()',
        'Sentry.replayIntegration()',
        'Sentry.feedbackIntegration()'
    ],
    static_url('/js/bundle.tracing.replay.feedback.min.js')
) }}

Important

If you do not self-host the sentry browser script, you should add browser.sentry-cdn.com to your allowed script-src.

You can read more about this here: Sentry Content Security Policy

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-06-03