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

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

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

logtide/logtide-laravel

Composer 安装命令:

composer require logtide/logtide-laravel

包简介

Laravel integration for the LogTide PHP SDK

README 文档

README

LogTide Logo

logtide/logtide-laravel

Packagist License Laravel

LogTide integration for Laravel - automatic request tracing, error capture, and breadcrumbs.

Features

  • Automatic request tracing via HTTP middleware
  • Error capture with full request context
  • W3C Trace Context propagation (traceparent in/out)
  • Laravel Log Channel - use LogTide as a logging driver
  • Facade - Logtide::info(...) static access
  • Breadcrumb integrations - DB queries, cache operations, queue jobs
  • Auto-discovery - zero configuration needed
  • Laravel 10, 11, and 12 support

Installation

composer require logtide/logtide-laravel

The service provider is auto-discovered. No manual registration needed.

Quick Start

  1. Add your DSN to .env:
LOGTIDE_DSN=https://lp_your_key@your-logtide-instance.com
  1. Optionally publish the config:
php artisan vendor:publish --tag=logtide-config

That's it! HTTP requests are automatically traced, exceptions captured, and DB queries recorded as breadcrumbs.

Configuration

// config/logtide.php

return [
    'dsn' => env('LOGTIDE_DSN'),
    'service' => env('LOGTIDE_SERVICE', env('APP_NAME', 'laravel')),
    'environment' => env('LOGTIDE_ENVIRONMENT', env('APP_ENV', 'production')),
    'release' => env('LOGTIDE_RELEASE'),
    'batch_size' => (int) env('LOGTIDE_BATCH_SIZE', 100),
    'flush_interval' => (int) env('LOGTIDE_FLUSH_INTERVAL', 5000),
    'max_buffer_size' => (int) env('LOGTIDE_MAX_BUFFER_SIZE', 10000),
    'max_retries' => (int) env('LOGTIDE_MAX_RETRIES', 3),
    'traces_sample_rate' => (float) env('LOGTIDE_TRACES_SAMPLE_RATE', 1.0),
    'debug' => (bool) env('LOGTIDE_DEBUG', false),
    'send_default_pii' => (bool) env('LOGTIDE_SEND_DEFAULT_PII', false),
    'breadcrumbs' => [
        'db_queries' => true,
        'cache' => true,
        'queue' => true,
        'http_client' => true,
    ],
    'skip_paths' => ['/health', '/healthz'],
];

Using the Log Channel

Add LogTide as a logging channel in config/logging.php:

'channels' => [
    'logtide' => [
        'driver' => 'custom',
        'via' => \LogTide\Laravel\LogChannel::class,
        'level' => 'debug',
    ],
],

Then use it:

Log::channel('logtide')->info('Hello from Laravel!');

// Or set as default in .env:
// LOG_CHANNEL=logtide

Using the Facade

use LogTide\Laravel\LogtideFacade as Logtide;

Logtide::info('User logged in', ['user_id' => 123]);
Logtide::captureException($exception);

Breadcrumb Integrations

All enabled by default in config/logtide.php:

  • DB Queries - records SQL queries as breadcrumbs (via QueryBreadcrumbIntegration)
  • Cache - records cache hits, misses, writes (via CacheBreadcrumbIntegration)
  • Queue - records job processing events (via QueueIntegration)

License

MIT License - see LICENSE for details.

Links

logtide/logtide-laravel 适用场景与选型建议

logtide/logtide-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「logging」 「laravel」 「tracing」 「observability」 「logtide」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 logtide/logtide-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 logtide/logtide-laravel 我们能提供哪些服务?
定制开发 / 二次开发

基于 logtide/logtide-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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