logtide/logtide-symfony
Composer 安装命令:
composer require logtide/logtide-symfony
包简介
Symfony integration for LogTide PHP SDK - automatic request tracing, console command monitoring, and Doctrine query tracking
README 文档
README
logtide/logtide-symfony
LogTide Bundle for Symfony - automatic request tracing, error capture, and breadcrumbs.
Features
- Automatic request tracing via
RequestSubscriber - Console command tracing via
ConsoleSubscriber - W3C Trace Context propagation (
traceparentin/out) - Doctrine breadcrumbs for database query tracking
- Semantic configuration - standard Symfony YAML/XML config
- Symfony 6.4 and 7.x support
Installation
composer require logtide/logtide-symfony
Register the bundle in config/bundles.php:
return [ // ... LogTide\Symfony\LogtideBundle::class => ['all' => true], ];
Quick Start
# config/packages/logtide.yaml logtide: dsn: '%env(LOGTIDE_DSN)%' service: 'my-symfony-app' environment: '%kernel.environment%'
Add LOGTIDE_DSN to your .env:
LOGTIDE_DSN=https://lp_your_key@your-logtide-instance.com
Configuration
logtide: dsn: ~ # LogTide DSN service: 'symfony' # Service name environment: ~ # Environment (production, staging, ...) release: ~ # Release / version identifier batch_size: 100 # Logs to batch before sending flush_interval: 5000 # Auto-flush interval in ms max_buffer_size: 10000 # Max logs in buffer max_retries: 3 # Max retry attempts traces_sample_rate: 1.0 # Sample rate for traces (0.0 to 1.0) debug: false # Enable debug logging send_default_pii: false # Send personally identifiable information
Event Subscribers
RequestSubscriber
Automatically traces HTTP requests:
- Starts a span on
kernel.request - Finishes the span on
kernel.response - Captures errors on
kernel.exception - Propagates
traceparentheaders
ConsoleSubscriber
Traces CLI commands:
- Starts a span on
console.command - Finishes the span on
console.terminate - Captures errors on
console.error
Integrations
SymfonyIntegration
Captures Symfony-specific context (kernel info, route parameters).
DoctrineIntegration
Records Doctrine SQL queries as breadcrumbs. Requires doctrine/dbal.
License
MIT License - see LICENSE for details.
Links
logtide/logtide-symfony 适用场景与选型建议
logtide/logtide-symfony 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「logging」 「symfony」 「monitoring」 「tracing」 「observability」 「logtide」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 logtide/logtide-symfony 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 logtide/logtide-symfony 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 logtide/logtide-symfony 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Symfony bundle for chameleon-system/sanitycheck
The bundle for easy using json-rpc api on your project
A Zend Framework module that sets up Monolog for logging in applications.
SoftWax Health Check Bundle for Symfony framework
1Pilot client for Symfony
Statsd (Object Oriented) client library for PHP
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-06
