PHPackages                             tbachert/otel-instrumentation-amphp-http-server - 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. tbachert/otel-instrumentation-amphp-http-server

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

tbachert/otel-instrumentation-amphp-http-server
===============================================

OpenTelemetry amphp/http-server instrumentation

02↓90.9%PHP

Since May 26Pushed 1mo agoCompare

[ Source](https://github.com/Nevay/otel-instrumentation-amphp-http-server)[ Packagist](https://packagist.org/packages/tbachert/otel-instrumentation-amphp-http-server)[ RSS](/packages/tbachert-otel-instrumentation-amphp-http-server/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

OpenTelemetry [amphp/http-server](https://github.com/amphp/http-server) instrumentation
=======================================================================================

[](#opentelemetry-amphphttp-server-instrumentation)

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

[](#installation)

```
composer require tbachert/otel-instrumentation-amphp-http-server
```

Usage
-----

[](#usage)

### Automatic instrumentation

[](#automatic-instrumentation)

This instrumentation is enabled by default.

#### Disable via file-based configuration

[](#disable-via-file-based-configuration)

```
instrumentations/development:
  php:
    amphp_http_server: false
```

#### Disable via env-based configuration

[](#disable-via-env-based-configuration)

```
OTEL_PHP_DISABLED_INSTRUMENTATIONS=amphp-http-server
```

### Manual instrumentation

[](#manual-instrumentation)

```
use Amp\Http\Server\Driver\DefaultHttpDriverFactory;
use Amp\Http\Server\SocketHttpServer;
use Nevay\OTelInstrumentation\AmphpHttpServer\TelemetryDriverFactory;
use Nevay\OTelInstrumentation\AmphpHttpServer\TelemetryHandler\Logs;
use Nevay\OTelInstrumentation\AmphpHttpServer\TelemetryHandler\Metrics;
use Nevay\OTelInstrumentation\AmphpHttpServer\TelemetryHandler\RequestPropagator;
use Nevay\OTelInstrumentation\AmphpHttpServer\TelemetryHandler\ResponsePropagator;
use Nevay\OTelInstrumentation\AmphpHttpServer\TelemetryHandler\Tracing;

$httpServer = new SocketHttpServer(
    ...,
    httpDriverFactory: new TelemetryDriverFactory(
        new DefaultHttpDriverFactory($logger),
        [
            new RequestPropagator($propagator),
            new ResponsePropagator($responsePropagator),
            new Tracing($tracerProvider),
            new Metrics($meterProvider),
            new Logs($loggerProvider),
        ],
    ),
);
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance61

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d96445384720ee37aa71d5ddd7b5a5d159558200b15b8a1b14e65e6095f2a7a?d=identicon)[tbachert](/maintainers/tbachert)

---

Top Contributors

[![Nevay](https://avatars.githubusercontent.com/u/22509671?v=4)](https://github.com/Nevay "Nevay (20 commits)")

### Embed Badge

![Health badge](/badges/tbachert-otel-instrumentation-amphp-http-server/health.svg)

```
[![Health](https://phpackages.com/badges/tbachert-otel-instrumentation-amphp-http-server/health.svg)](https://phpackages.com/packages/tbachert-otel-instrumentation-amphp-http-server)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.0k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M265](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M323](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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