reactedge/widgets-open-telemetry 问题修复 & 功能扩展

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

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

reactedge/widgets-open-telemetry

Composer 安装命令:

composer require reactedge/widgets-open-telemetry

包简介

OpenTelemetry integration for Magento and Mage-OS.

README 文档

README

OpenTelemetry integration for ReactEdge widgets and distributed commerce applications.

Widgets OpenTelemetry provides a lightweight observability layer for ReactEdge widgets, allowing widget lifecycle events, activities and distributed traces to be exported using the OpenTelemetry standard.

The project is designed to work alongside WidgetBridge but is not limited to Magento. Any platform capable of hosting ReactEdge widgets can benefit from the same instrumentation model.

Features

  • OpenTelemetry integration
  • Widget lifecycle tracing
  • Distributed tracing
  • Structured widget activities
  • Correlation ID propagation
  • Custom spans and events
  • OTLP exporter support
  • Lightweight integration

Why?

Modern frontend architectures rarely execute entirely within a single application.

A widget may interact with:

  • Magento or Mage-OS
  • React SSR services
  • Search services
  • Recommendation engines
  • AI services
  • External APIs

Without end-to-end tracing it becomes difficult to understand widget behaviour, diagnose failures or measure performance across system boundaries.

Widgets OpenTelemetry provides a standard way to observe those interactions.

Installation

Install using Composer:

composer require reactedge/widgets-open-telemetry

Enable the module:

bin/magento module:enable ReactEdge_WidgetsOpenTelemetry
bin/magento setup:upgrade
bin/magento cache:flush

Example

$operation = $activity->startOperation('widget.render');

$activity->addEvent($operation, 'contract.loaded');

$activity->endOperation($operation);

If the OpenTelemetry exporter is unavailable, the operation gracefully degrades without affecting widget execution.

Compatibility

  • Magento 2
  • Mage-OS
  • PHP 8.1+
  • OpenTelemetry SDK

Philosophy

Widgets OpenTelemetry follows a few simple principles:

  • Open standards
  • Optional observability
  • Minimal coupling
  • Graceful degradation
  • Vendor neutrality

Observability should enhance applications, never become a deployment requirement.

Related projects

  • ReactEdge WidgetBridge
  • ReactEdge Health Engine
  • ReactEdge Image Optimizer

Roadmap

  • Browser instrumentation
  • Automatic HTTP instrumentation
  • Metrics support
  • Additional exporters
  • Dashboard examples
  • AI-assisted diagnostics

Contributing

Contributions, ideas and feedback are welcome.

Please open an issue before submitting significant changes.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固