PHPackages                             open-telemetry/opentelemetry-config-http - 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. open-telemetry/opentelemetry-config-http

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

open-telemetry/opentelemetry-config-http
========================================

OpenTelemetry HTTP configuration options

0.3.0(6d ago)063Apache-2.0PHPPHP ^8.2

Since Jan 17Pushed 3w agoCompare

[ Source](https://github.com/opentelemetry-php/contrib-config-http)[ Packagist](https://packagist.org/packages/open-telemetry/opentelemetry-config-http)[ Docs](https://opentelemetry.io/docs/php)[ RSS](/packages/open-telemetry-opentelemetry-config-http/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (14)Versions (4)Used By (0)

[![Releases](https://camo.githubusercontent.com/46e38a504120203bf7615645011bcf2bb834e03e8eb0bc8e0f4864c729fd5baf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c65617365732d707572706c65)](https://github.com/opentelemetry-php/contrib-http-config/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/HttpConfig)[![Mirror](https://camo.githubusercontent.com/2f9050293ab0c0d9471e618215bc7417a63b6873c960e1605bddb69b1911fa4c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6972726f722d6f70656e74656c656d657472792d2d7068702d2d636f6e747269622d626c7565)](https://github.com/opentelemetry-php/contrib-config-http)[![Latest Version](https://camo.githubusercontent.com/c6a7eda588ae5d340169b8955700219448f71a66d31e5b461d95d0049642aeb5/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d74656c656d657472792f6f70656e74656c656d657472792d636f6e6669672d687474702f762f756e737461626c65)](https://packagist.org/packages/open-telemetry/opentelemetry-config-http/)[![Stable](https://camo.githubusercontent.com/f5bc774a8207cad6c6f6434ae1c5589e081d26c7c8cef8a966e0adfcff1a4166/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d74656c656d657472792f6f70656e74656c656d657472792d636f6e6669672d687474702f762f737461626c65)](https://packagist.org/packages/open-telemetry/opentelemetry-config-http/)

This is a read-only subtree split of .

OpenTelemetry HTTP configuration
================================

[](#opentelemetry-http-configuration)

Provides configuration options for HTTP instrumentation packages.

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

[](#configuration)

### File-based configuration

[](#file-based-configuration)

```
instrumentation/development:
  php:
    http:
      client:
        capture_url_scheme:
        capture_url_template:
        capture_user_agent_original:
        capture_user_agent_synthetic_type:
        capture_network_transport:
        capture_request_body_size:
        capture_request_size:
        capture_response_body_size:
        capture_response_size:
      server:
        capture_client_port:
        capture_user_agent_synthetic_type:
        capture_network_transport:
        capture_network_local_address:
        capture_network_local_port:
        capture_request_body_size:
        capture_request_size:
        capture_response_body_size:
        capture_response_size:
      uri_sanitizers:
        - default:
        - redact_query_string_values:
            query_keys: [ passwd, secret ]
      known_http_methods: [ CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, QUERY, TRACE, CUSTOM ]
```

### Env-based configuration

[](#env-based-configuration)

```
OTEL_PHP_INSTRUMENTATION_URL_SANITIZE_FIELD_NAMES="passwd,secret"
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS="CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,QUERY,TRACE,CUSTOM"
```

Usage
-----

[](#usage)

```
use OpenTelemetry\API\Configuration\ConfigProperties;
use OpenTelemetry\API\Instrumentation\AutoInstrumentation\Context;
use OpenTelemetry\API\Instrumentation\AutoInstrumentation\HookManagerInterface;
use OpenTelemetry\API\Instrumentation\AutoInstrumentation\Instrumentation;
use OpenTelemetry\Contrib\Instrumentation\HttpConfig\HttpConfig;

final class CustomHttpInstrumentation implements Instrumentation
{
    public function register(HookManagerInterface $hookManager, ConfigProperties $configuration, Context $context): void
    {
        $httpConfig = $configuration->get(HttpConfig::class) ?? new HttpConfig();

        $httpConfig->...
    }
}
```

###  Health Score

41

↑

FairBetter than 87% of packages

Maintenance96

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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 ~81 days

Total

3

Last Release

6d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4978962?v=4)[Brett McBride](/maintainers/brettmc)[@brettmc](https://github.com/brettmc)

![](https://avatars.githubusercontent.com/u/4099109?v=4)[Bob Strecansky](/maintainers/bobstrecansky)[@bobstrecansky](https://github.com/bobstrecansky)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (2 commits)")[![ChrisLightfootWild](https://avatars.githubusercontent.com/u/106102472?v=4)](https://github.com/ChrisLightfootWild "ChrisLightfootWild (1 commits)")[![Nevay](https://avatars.githubusercontent.com/u/22509671?v=4)](https://github.com/Nevay "Nevay (1 commits)")

---

Tags

opentelemetryotelinstrumentationopen-telemetry

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/open-telemetry-opentelemetry-config-http/health.svg)

```
[![Health](https://phpackages.com/badges/open-telemetry-opentelemetry-config-http/health.svg)](https://phpackages.com/packages/open-telemetry-opentelemetry-config-http)
```

###  Alternatives

[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.6M3](/packages/open-telemetry-opentelemetry-auto-symfony)[open-telemetry/opentelemetry-auto-wordpress

OpenTelemetry auto-instrumentation for Wordpress

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

OpenTelemetry auto-instrumentation for PDO

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

OpenTelemetry auto-instrumentation for Shopware

1040.3k1](/packages/shopware-opentelemetry)

PHPackages © 2026

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