kuick/sentry 问题修复 & 功能扩展

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

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

kuick/sentry

最新稳定版本:v2.2.1

Composer 安装命令:

composer require kuick/sentry

包简介

Kuick Sentry provides a bridge to Sentry for Kuick applications.

README 文档

README

Latest Version PHP Total Downloads GitHub Actions CI codecov Software License

A Sentry bridge for applications based on Kuick Framework

Requirements

Installation

1. Install via Composer

composer require kuick/sentry

2. Register the DI definitions

The DI file wires SentryConfig, SentryInitializer, SentryListener, and SentryExceptionController and reads all settings from environment variables.

Test out the Sentry exception trigger it with:

curl -X PUT https://your-app.example.com/api/sentry/exception

Check your Sentry project — an event titled "Test exception for sentry integration" should appear.

3. Configure via environment variables

Variable Default Description
SENTRY_ENABLED 0 Set to 1 to enable Sentry reporting
SENTRY_DSN (empty) Your project DSN from the Sentry dashboard
SENTRY_ENVIRONMENT LOCAL Environment tag sent with every event (e.g. production, staging)
SENTRY_SAMPLE_RATE 1.0 Traces sample rate between 0.0 and 1.0
SENTRY_RELEASE (empty) Release identifier (e.g. v1.2.3 or a commit SHA)
SENTRY_IGNORE_EXCEPTIONS Kuick\Http\HttpException Comma-separated list of exception class names that should not be reported

Example .env file:

SENTRY_ENABLED=1
SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0
SENTRY_ENVIRONMENT=production
SENTRY_SAMPLE_RATE=1.0
SENTRY_RELEASE=v1.0.0
SENTRY_IGNORE_EXCEPTIONS=Kuick\Http\HttpException,App\Exception\ValidationException

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固