PHPackages                             jerrytfleung/opentelemetry-auto-magento2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. jerrytfleung/opentelemetry-auto-magento2

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

jerrytfleung/opentelemetry-auto-magento2
========================================

OpenTelemetry auto-instrumentation for Magento2

1.0.1(2w ago)157Apache-2.0PHPPHP ^8.3

Since May 13Pushed 2w agoCompare

[ Source](https://github.com/jerrytfleung/contrib-auto-magento2)[ Packagist](https://packagist.org/packages/jerrytfleung/opentelemetry-auto-magento2)[ Docs](https://opentelemetry.io/docs/languages/php/)[ RSS](/packages/jerrytfleung-opentelemetry-auto-magento2/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (16)Versions (4)Used By (0)

[![Releases](https://camo.githubusercontent.com/46e38a504120203bf7615645011bcf2bb834e03e8eb0bc8e0f4864c729fd5baf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c65617365732d707572706c65)](https://github.com/opentelemetry-php/contrib-auto-magento2/releases)[![Issues](https://camo.githubusercontent.com/b9b31135f113cdb6e2b662b4040276044ee0803567bc17688eaf4386f797ea50/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6973737565732d70696e6b)](https://github.com/open-telemetry/opentelemetry-php/issues)[![Source](https://camo.githubusercontent.com/e27dd1126a60abf1c26521d893d9f235ef342a76231c2428ddbc4651185bd626/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d636f6e747269622d677265656e)](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/Magento2)[![Mirror](https://camo.githubusercontent.com/2f9050293ab0c0d9471e618215bc7417a63b6873c960e1605bddb69b1911fa4c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6972726f722d6f70656e74656c656d657472792d2d7068702d2d636f6e747269622d626c7565)](https://github.com/opentelemetry-php/contrib-auto-magento2)[![Latest Version](https://camo.githubusercontent.com/e21584d19016a5eaf845cd0b2c7f124311997eec6007ef31e2e8c3cd27b0bafd/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d74656c656d657472792f6f70656e74656c656d657472792d6175746f2d6d6167656e746f322f762f756e737461626c65)](https://packagist.org/packages/open-telemetry/opentelemetry-auto-magento2/)[![Stable](https://camo.githubusercontent.com/e7af467d33695fde004248c91a8fc899ad02679cc6f554d6bd1c2fc312929cb9/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d74656c656d657472792f6f70656e74656c656d657472792d6175746f2d6d6167656e746f322f762f737461626c65)](https://packagist.org/packages/open-telemetry/opentelemetry-auto-magento2/)

This is a read-only subtree split of .

OpenTelemetry Magento2 auto-instrumentation
===========================================

[](#opentelemetry-magento2-auto-instrumentation)

Please read  for instructions on how to install and configure the extension and SDK.

Overview
--------

[](#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
-------------

[](#configuration)

The extension can be disabled via [runtime configuration](https://opentelemetry.io/docs/instrumentation/php/sdk/#configuration):

```
OTEL_PHP_DISABLED_INSTRUMENTATIONS=magento2
```

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance96

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

2

Last Release

18d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8791493?v=4)[Jerry Leung](/maintainers/jerrytfleung)[@jerrytfleung](https://github.com/jerrytfleung)

---

Top Contributors

[![jerrytfleung](https://avatars.githubusercontent.com/u/8791493?v=4)](https://github.com/jerrytfleung "jerrytfleung (79 commits)")

---

Tags

tracingopentelemetryotelmagento2instrumentationopen-telemetry

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jerrytfleung-opentelemetry-auto-magento2/health.svg)

```
[![Health](https://phpackages.com/badges/jerrytfleung-opentelemetry-auto-magento2/health.svg)](https://phpackages.com/packages/jerrytfleung-opentelemetry-auto-magento2)
```

###  Alternatives

[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

582.4M8](/packages/open-telemetry-opentelemetry-auto-laravel)[open-telemetry/opentelemetry-auto-symfony

OpenTelemetry auto-instrumentation for Symfony

561.5M3](/packages/open-telemetry-opentelemetry-auto-symfony)[open-telemetry/opentelemetry-auto-wordpress

OpenTelemetry auto-instrumentation for Wordpress

17194.7k](/packages/open-telemetry-opentelemetry-auto-wordpress)[open-telemetry/opentelemetry-auto-pdo

OpenTelemetry auto-instrumentation for PDO

111.5M2](/packages/open-telemetry-opentelemetry-auto-pdo)[shopware/opentelemetry

OpenTelemetry auto-instrumentation for Shopware

1037.0k1](/packages/shopware-opentelemetry)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
