pixielity/laravel-telemetry
Composer 安装命令:
composer require pixielity/laravel-telemetry
包简介
Complete telemetry and observability suite for Pixielity applications - includes Sentry error tracking, Pulse monitoring, Telescope debugging, Horizon queue monitoring, and Debugbar profiling
关键字:
README 文档
README
**Complete telemetry and observability suite for Pixielity applications - Sentry, Pulse, Telescope, Horizon, Debugbar, and Health** [](https://packagist.org/packages/pixielity/laravel-telemetry) [](https://packagist.org/packages/pixielity/laravel-telemetry) [](https://github.com/pixielity-co/laravel-telemetry/actions/workflows/tests.yml) [](https://phpstan.org/) [](https://packagist.org/packages/pixielity/laravel-telemetry) [](https://packagist.org/packages/pixielity/laravel-telemetry) [Features](#-features) • [Installation](#-installation) • [Sub-packages](#-sub-packages) • [Quick Start](#-quick-start) • [Architecture](#-architecture) • [Configuration](#-configuration)
📑 Table of Contents
- Overview
- Features
- Sub-packages
- Requirements
- Installation
- Quick Start
- Components & Attributes
- Architecture
- Configuration
- Real-World Examples
- Performance
- Security
- Contributing
- Credits
- License
🌟 Overview
Telemetry is a production-ready observability suite that consolidates the best-in-class Laravel monitoring tools into a single, cohesive package. It eliminates the manual boilerplate of registering watchers, collectors, and health checks by leveraging an attribute-based discovery system.
Why Telemetry?
Traditional Approach:
// Manual registration across multiple config files
// Sentry middleware setup...
// Telescope watchers in TelescopeServiceProvider...
// Horizon tags in AppServiceProvider...
// Manual Health check registration...
With Telemetry:
// Automatic discovery - just add attributes to your classes
#[AsHealthCheck(name: 'database')]
class DatabaseCheck extends Check { ... }
#[AsSentryContext]
class UserContext { ... }
#[AsMetric]
class OrderMetrics { ... }
✨ Features
🎯 Unified Observability
- Centralized Management - One package to rule them all. Manage Sentry, Pulse, Telescope, and more from a single entry point.
- Attribute-Driven - Zero-config registration using PHP 8 attributes.
- Monorepo Ready - Automatically scans all your packages for monitoring components.
⚡ Performance & Quality
- Discovery Caching - Blazing fast attribute scanning with built-in caching.
- Strict Typing - Full PHP 8.3+ type safety across the entire suite.
- PSR-12 Compliant - Follows modern PHP coding standards.
🏗️ Flexible Integration
- Pick and Choose - Use the full suite or individual sub-packages.
- Extensible - Easily add your own custom collectors or watchers.
- Laravel 12 Support - Built for the latest versions of the Laravel framework.
📦 Sub-packages
Telemetry is composed of several specialized sub-packages that can be used together or independently:
| Package | Description | Integration |
|---|---|---|
| Sentry | Error tracking and context discovery | sentry/sentry-laravel |
| Pulse | Real-time dashboards and metrics | laravel/pulse |
| Telescope | Advanced application debugging | laravel/telescope |
| Horizon | Queue monitoring and metrics | laravel/horizon |
| Debugbar | Development-time debugging toolbar | barryvdh/laravel-debugbar |
| Health | System diagnostics and uptime monitoring | spatie/laravel-health |
📋 Requirements
- PHP: 8.3 or higher
- Laravel: 11.0 or 12.0
- Composer: 2.0 or higher
📦 Installation
Install the complete suite via Composer:
composer require pixielity/laravel-telemetry
Or install individual packages as needed:
composer require pixielity/laravel-telemetry-sentry
composer require pixielity/laravel-telemetry-pulse
🚀 Quick Start
- Tag your classes: Use attributes like
#[AsHealthCheck],#[AsRecorder], or#[AsSentryContext]on your components. - Automatic Registration: Telemetry will automatically discover and register these components during the application boot process.
- View Data: Check your Sentry dashboard, Pulse dashboard, or Telescope UI to see your telemetry data flowing.
🎯 Components & Attributes
1. Sentry Contexts
Enrich error reports with custom user data, tags, and extra context.
- Attribute:
#[AsSentryContext] - Target: Classes (must be invokable)
2. Pulse Cards & Recorders
Extend your real-time dashboard with custom cards and recorders.
- Attributes:
#[AsCard],#[AsRecorder],#[AsFilter] - Target: Livewire components (cards) or recorder classes.
3. Telescope Watchers
Define custom application debug watchers.
- Attribute:
#[AsWatcher] - Target: Watcher classes.
4. Horizon Metrics & Tags
Monitor queue performance and organize jobs with tags.
- Attributes:
#[AsMetric],#[HorizonTag] - Target: Metric collectors or Job classes.
5. Health Checks
Monitor system uptime and resource usage.
- Attribute:
#[AsHealthCheck] - Target: Classes extending
Spatie\Health\Checks\Check.
🏗️ Architecture
Telemetry uses a Manager Pattern for each sub-package. Each manager utilizes a shared discovery system to scan for relevant attributes across your entire application. This means you can distribute your monitoring logic across multiple packages in a monorepo, and Telemetry will find them all.
⚙️ Configuration
Publish all sub-package configurations at once:
php artisan vendor:publish --provider="Pixielity\Providers\TelemetryServiceProvider"
Individual configs can also be published using specific tags (e.g., telemetry-sentry-config).
🧪 Performance
Telemetry leverages composer-attribute-collector and internal caching to ensure that even large monorepos are scanned efficiently.
| Operation | Performance |
|---|---|
| Attribute Discovery | < 5ms (Cached) |
| Registration Overhead | Negligible |
| Memory Footprint | Low |
🛡️ Security
Telemetry collects sensitive application data. We recommend:
- Protecting monitoring UIs with authentication.
- Masking sensitive fields (passwords, PII) in Sentry and Telescope.
- Only enabling
Debugbarin local development.
🤝 Contributing
Please see CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
📜 License
Telemetry is proprietary software. See LICENSE for more information.
pixielity/laravel-telemetry 适用场景与选型建议
pixielity/laravel-telemetry 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「debugging」 「monitoring」 「laravel」 「sentry」 「debugbar」 「pulse」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pixielity/laravel-telemetry 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pixielity/laravel-telemetry 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pixielity/laravel-telemetry 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Symfony bundle for chameleon-system/sanitycheck
A PHP package that takes a snapshot of your application and allows you to retrieve it later to help with debugging.
SoftWax Health Check Bundle for Symfony framework
1Pilot client for Symfony
Laravel Database Query Logger and debug helper.
Statsd (Object Oriented) client library for PHP
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 51
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-08