定制 medienreaktor/sentry 二次开发

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

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

medienreaktor/sentry

Composer 安装命令:

composer require medienreaktor/sentry

包简介

Integrates sentry compatible error tracking into Neos.

README 文档

README

Non-blocking asynchronous Sentry transport for Neos Flow applications.

Overview

This package extends PunktDe.Sentry.Neos with a asynchronous transport layer that prevents Sentry logging from impacting application response times. By using Guzzle's async capabilities in a fire-and-forget manner, error reporting happens in the background without blocking the main request.

Why this package?

When logging multiple errors to Sentry in a single request, the default synchronous transport can significantly slow down your application. Each event waits for a response from the Sentry server before continuing. This package solves that problem by:

  • Non-blocking requests: Events are sent asynchronously without waiting for server responses
  • Fire-and-forget: Your application continues immediately after triggering the send
  • Maintained compatibility: Preserves all Sentry features including rate limiting and error handling

Requirements

  • Neos Flow 8.x - 9.x
  • PunktDe.Sentry.Neos ^4.0
  • Guzzle HTTP client (typically already available in Flow/Neos)

Installation

composer require medienreaktor/sentry

Configuration

Just configure the environment variables for the package. The SENTRY_DSN is needed. That's it! All other PunktDe.Sentry.Flow settings work as usual.

How it works

The GuzzleAsyncTransport implements Sentry's TransportInterface and:

  1. Serializes events using Sentry's standard payload serializer
  2. Sends HTTP requests via Guzzle's postAsync() method
  3. Triggers the request with wait(false) to ensure it's sent without blocking
  4. Handles responses and errors asynchronously in background callbacks

Technical Details

  • Uses lazy initialization to retrieve Sentry options from the SDK
  • Preserves all standard Sentry features (rate limiting, profiling, etc.)
  • Logs successes and failures for debugging purposes
  • Gracefully handles errors in fire-and-forget mode

License

This package is open source software. For license information, please see the LICENSE file.

Credits

Built by Medienreaktor to optimize Sentry integration.

Based on PunktDe.Sentry.Neos by punkt.de.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固