josemv92 / opentelemetry-auto-lumen
OpenTelemetry auto-instrumentation for Lumen
Requires
- php: ^8.3
- ext-json: *
- ext-opentelemetry: *
- illuminate/routing: ^10.0 | ^11.0
- laravel/lumen-framework: ^10.0 | ^11.0
- new999day/opentelemetry-auto-ext-amqp: dev-main
- open-telemetry/api: ^1.0
- open-telemetry/exporter-otlp: ^1.0
- open-telemetry/extension-propagator-b3: ^1.0@dev
- open-telemetry/opentelemetry-propagation-server-timing: 0.0.4
- open-telemetry/sem-conv: ^1.23
This package is auto-updated.
Last update: 2026-08-13 21:31:01 UTC
README
OpenTelemetry Lumen auto-instrumentation
Auto-telemetry for the Lumen framework built with OpenTelemetry.
(Original built from new999day/contrib-auto-lumen)
Overview
Provides instrumentation based on the Lumen framework functionality to generate spans based on the different actions the application can make.
This package is build based on the official Laravel instrumentation and it is up to date with the latest Lumen version.
Warning
Lumen framework is deprecated in favor of using Laravel. This package is mimicking the functionality the Laravel auto-instrumentation package had for v11.x. Suggestions for more functionality might be evaluated but won't be priority. Prefer moving to Laravel to get the latest security upgrades for the framework.
Auto-instrumentation hooks are registered via composer, and spans will automatically be created.
Pre-requirements
- Lumen framework v11.x
- PHP OpenTelemetry
Installation
You can install this package using Composer
composer require josemv92/opentelemetry-auto-lumen
Configuration
The extension can be disabled via runtime configuration:
OTEL_PHP_DISABLED_INSTRUMENTATIONS=lumen
Contributions
Pull requests are allowed, but since Lumen framework is already deprecated, this might not be a priority. Application follows PSR-12.