承接 logtide/logtide-symfony 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

logtide/logtide-symfony

最新稳定版本:v0.7.4

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 Logo

logtide/logtide-symfony

Packagist License 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 (traceparent in/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 traceparent headers

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

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固