PHPackages                             linavel/opentelemetry-auto-lumen - 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. linavel/opentelemetry-auto-lumen

ActiveLibrary

linavel/opentelemetry-auto-lumen
================================

OpenTelemetry auto-instrumentation for Lumen

v0.1.0(3d ago)02↑2900%Apache-2.0PHPPHP ^8.3

Since Jul 24Pushed todayCompare

[ Source](https://github.com/linaadamson/opentelemetry-auto-lumen)[ Packagist](https://packagist.org/packages/linavel/opentelemetry-auto-lumen)[ Docs](https://github.com/linaadamson/opentelemetry-auto-lumen)[ RSS](/packages/linavel-opentelemetry-auto-lumen/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (2)Used By (0)

[![Releases](https://camo.githubusercontent.com/46e38a504120203bf7615645011bcf2bb834e03e8eb0bc8e0f4864c729fd5baf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c65617365732d707572706c65)](https://github.com/linaadamson/opentelemetry-auto-lumen/releases)[![Issues](https://camo.githubusercontent.com/b9b31135f113cdb6e2b662b4040276044ee0803567bc17688eaf4386f797ea50/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6973737565732d70696e6b)](https://github.com/linaadamson/opentelemetry-auto-lumen/issues)

Originally based on the Laravel auto-instrumentation in  (Apache-2.0), adapted for Lumen and maintained independently in this repository.

OpenTelemetry Lumen auto-instrumentation
========================================

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

Installation
------------

[](#installation)

```
composer require linavel/opentelemetry-auto-lumen
```

`OTEL_*` environment variables must be available before the OpenTelemetry SDK bootstraps, which happens as soon as Composer's autoloader loads. Lumen's own environment loading normally runs *after* the autoloader, so `_loadenv.php` needs to be required directly, before `vendor/autoload.php`, in your project's `bootstrap/app.php`:

```
require __DIR__.'/../vendor/linavel/opentelemetry-auto-lumen/_loadenv.php';
require __DIR__.'/../vendor/autoload.php';
```

`_loadenv.php` reads the `.env` file at your project root and exports any `OTEL_*` keys via `putenv()` so they're visible to the SDK during autoloading.

Configuration
-------------

[](#configuration)

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

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance100

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor3

3 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

3d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/89152173?v=4)[Lina Adamson](/maintainers/linaadamson)[@linaadamson](https://github.com/linaadamson)

---

Top Contributors

[![ChrisLightfootWild](https://avatars.githubusercontent.com/u/106102472?v=4)](https://github.com/ChrisLightfootWild "ChrisLightfootWild (9 commits)")[![pdelewski](https://avatars.githubusercontent.com/u/102958445?v=4)](https://github.com/pdelewski "pdelewski (5 commits)")[![brettmc](https://avatars.githubusercontent.com/u/4978962?v=4)](https://github.com/brettmc "brettmc (4 commits)")[![xvilo](https://avatars.githubusercontent.com/u/390769?v=4)](https://github.com/xvilo "xvilo (3 commits)")[![weslenteche](https://avatars.githubusercontent.com/u/54692047?v=4)](https://github.com/weslenteche "weslenteche (3 commits)")[![agoallikmaa](https://avatars.githubusercontent.com/u/3532037?v=4)](https://github.com/agoallikmaa "agoallikmaa (2 commits)")[![LauJosefsen](https://avatars.githubusercontent.com/u/44977457?v=4)](https://github.com/LauJosefsen "LauJosefsen (2 commits)")[![linaadamson](https://avatars.githubusercontent.com/u/89152173?v=4)](https://github.com/linaadamson "linaadamson (1 commits)")[![piotrantosik](https://avatars.githubusercontent.com/u/154553?v=4)](https://github.com/piotrantosik "piotrantosik (1 commits)")[![siketyan](https://avatars.githubusercontent.com/u/12772118?v=4)](https://github.com/siketyan "siketyan (1 commits)")[![julianocosta89](https://avatars.githubusercontent.com/u/15364991?v=4)](https://github.com/julianocosta89 "julianocosta89 (1 commits)")[![xdavidwu](https://avatars.githubusercontent.com/u/11596445?v=4)](https://github.com/xdavidwu "xdavidwu (1 commits)")[![eliseuborges](https://avatars.githubusercontent.com/u/15690538?v=4)](https://github.com/eliseuborges "eliseuborges (1 commits)")

---

Tags

lumentracingopentelemetryotelinstrumentationopen-telemetry

### Embed Badge

![Health badge](/badges/linavel-opentelemetry-auto-lumen/health.svg)

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

###  Alternatives

[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

167558.4k1](/packages/keepsuit-laravel-opentelemetry)[traceway/opentelemetry-symfony

Pure-PHP OpenTelemetry instrumentation for Symfony — automatic HTTP, Console, HttpClient, Messenger, Doctrine DBAL, Cache, Twig tracing and Monolog log-trace correlation with response propagation, a lightweight Tracing helper, route templates, and semantic conventions. No C extension required (ext-protobuf recommended for production).

7912.6k](/packages/traceway-opentelemetry-symfony)[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

592.7M9](/packages/open-telemetry-opentelemetry-auto-laravel)[open-telemetry/opentelemetry-auto-symfony

OpenTelemetry auto-instrumentation for Symfony

561.6M4](/packages/open-telemetry-opentelemetry-auto-symfony)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M351](/packages/drupal-core-dev)[open-telemetry/opentelemetry-auto-pdo

OpenTelemetry auto-instrumentation for PDO

111.7M3](/packages/open-telemetry-opentelemetry-auto-pdo)

PHPackages © 2026

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