worldia/instrumentation-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

worldia/instrumentation-bundle

最新稳定版本:2.1.1

Composer 安装命令:

composer require worldia/instrumentation-bundle

包简介

Symfony opentelemetry auto-instrumentation: requests, commands, messenger, doctrine.

README 文档

README

Using the official OpenTelemetry SDK.

Features

  • Minimal auto-instrumentation for requests, console commands, consumers and doctrine
  • Trace context propagation from incoming requests to consumers and outgoing http calls
  • Minimal metrics for requests, consumers and messages
  • Trace context propagation for database requests (using sqlcommenter)

Full working example

For a fully working example including Jaeger, Grafana, Tempo, Loki and Prometheus, check the example directory.

Installation and configuration

Install along your exporter implementation, eg. open-telemetry/exporter-otlp.

composer require worldia/instrumentation-bundle open-telemetry/exporter-otlp

Add to bundles.php.

return [ // Other bundles Instrumentation\InstrumentationBundle::class => ['all' => true], ];

Configure OTEL env vars. Replace <your-telemetry-collector> by yours, eg. jaeger, tempo, otel-collector, ...

OTEL_SERVICE_NAME=test-app OTEL_PHP_DETECTORS=none OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=Delta OTEL_EXPORTER_OTLP_PROTOCOL=http/json OTEL_EXPORTER_OTLP_ENDPOINT=http://<your-telemetry-collector>:4318

Enable the extension. See the complete configuration reference here or run bin/console config:dump-reference instrumentation.

instrumentation: ~ monolog: handlers: otel: type: service id: Instrumentation\Logging\OtelHandler

Usage

统计信息

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

GitHub 信息

  • Stars: 26
  • Watchers: 5
  • Forks: 14
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固