opentelemetry-php-contrib icon indicating copy to clipboard operation
opentelemetry-php-contrib copied to clipboard

Add http configuration package

Open Nevay opened this issue 5 months ago • 2 comments

Provides general configuration options for HTTP instrumentation packages.

Env-based configuration supports:

  • OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS
  • OTEL_PHP_INSTRUMENTATION_URL_SANITIZE_FIELD_NAMES from https://github.com/open-telemetry/opentelemetry-php-contrib/pull/379

File-based configuration supports:

  • overriding known HTTP methods
  • overriding URI sanitization
  • enabling opt-in attributes for server and client spans

Depends on https://github.com/open-telemetry/opentelemetry-php/pull/1621 to load configuration from config file or env.

Nevay avatar Jun 05 '25 20:06 Nevay