jerrytfleung/opentelemetry-auto-magento2 问题修复 & 功能扩展

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

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

jerrytfleung/opentelemetry-auto-magento2

最新稳定版本:1.0.0

Composer 安装命令:

composer require jerrytfleung/opentelemetry-auto-magento2

包简介

OpenTelemetry auto-instrumentation for Magento2

README 文档

README

Releases Issues Source Mirror Latest Version Stable

This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.

OpenTelemetry Magento2 auto-instrumentation

Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.

Overview

Auto-instrumentation hooks are registered via composer, and spans will automatically be created for:

  • Http::launch() - creates the root HTTP server span, attaches request attributes, records the response status code, propagates response headers, and records exceptions.
  • Bootstrap::terminate() - creates a Bootstrap::terminate span and records any terminating exception.
  • FrontController::dispatch() - creates a FrontController.dispatch span around front controller routing.
  • Action::dispatch() - creates a span named from the Magento full action name, or unknown when it is unavailable.
  • ActionInterface::execute() - creates an ActionInterface.execute span around action execution.
  • Manager::dispatch() - creates EVENT: {event name} spans for Magento event dispatches, with unknown as a fallback.
  • InvokerInterface::dispatch() - creates OBSERVER: {observer name} spans for observer execution, with unknown as a fallback.
  • Template::fetchView() - creates TEMPLATE: {template path} spans for template rendering and records rendering exceptions.
  • View::renderLayout() - creates a LAYOUT: layout_render span around layout rendering and records rendering exceptions.

In addition to spans, Http::launch() also records the http.server.request.duration metric with request metadata and response/error attributes.

Configuration

The extension can be disabled via runtime configuration:

OTEL_PHP_DISABLED_INSTRUMENTATIONS=magento2

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-04-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固