opentelemetry-php-contrib
opentelemetry-php-contrib copied to clipboard
Add http configuration package
Provides general configuration options for HTTP instrumentation packages.
Env-based configuration supports:
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODSOTEL_PHP_INSTRUMENTATION_URL_SANITIZE_FIELD_NAMESfrom 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.