{"id":44246273,"url":"https://github.com/opentelemetry-php/contrib-config-http","last_synced_at":"2026-06-28T01:01:22.596Z","repository":{"id":333096360,"uuid":"1136187664","full_name":"opentelemetry-php/contrib-config-http","owner":"opentelemetry-php","description":"[READONLY] HTTP configuration","archived":false,"fork":false,"pushed_at":"2026-05-04T12:11:30.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-04T14:16:32.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opentelemetry-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-17T08:17:45.000Z","updated_at":"2026-05-04T12:11:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/opentelemetry-php/contrib-config-http","commit_stats":null,"previous_names":["opentelemetry-php/contrib-config-http"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/opentelemetry-php/contrib-config-http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-config-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-config-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-config-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-config-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentelemetry-php","download_url":"https://codeload.github.com/opentelemetry-php/contrib-config-http/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-config-http/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34873663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-10T12:36:16.913Z","updated_at":"2026-06-28T01:01:22.589Z","avatar_url":"https://github.com/opentelemetry-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Releases](https://img.shields.io/badge/releases-purple)](https://github.com/opentelemetry-php/contrib-http-config/releases)\n[![Issues](https://img.shields.io/badge/issues-pink)](https://github.com/open-telemetry/opentelemetry-php/issues)\n[![Source](https://img.shields.io/badge/source-contrib-green)](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/HttpConfig)\n[![Mirror](https://img.shields.io/badge/mirror-opentelemetry--php--contrib-blue)](https://github.com/opentelemetry-php/contrib-config-http)\n[![Latest Version](http://poser.pugx.org/open-telemetry/opentelemetry-config-http/v/unstable)](https://packagist.org/packages/open-telemetry/opentelemetry-config-http/)\n[![Stable](http://poser.pugx.org/open-telemetry/opentelemetry-config-http/v/stable)](https://packagist.org/packages/open-telemetry/opentelemetry-config-http/)\n\nThis is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.\n\n# OpenTelemetry HTTP configuration\n\nProvides configuration options for HTTP instrumentation packages.\n\n## Configuration\n\n### File-based configuration\n\n```yaml\ninstrumentation/development:\n  php:\n    http:\n      client:\n        capture_url_scheme:\n        capture_url_template:\n        capture_user_agent_original:\n        capture_user_agent_synthetic_type:\n        capture_network_transport:\n        capture_request_body_size:\n        capture_request_size:\n        capture_response_body_size:\n        capture_response_size:\n      server:\n        capture_client_port:\n        capture_user_agent_synthetic_type:\n        capture_network_transport:\n        capture_network_local_address:\n        capture_network_local_port:\n        capture_request_body_size:\n        capture_request_size:\n        capture_response_body_size:\n        capture_response_size:\n      uri_sanitizers:\n        - default:\n        - redact_query_string_values:\n            query_keys: [ passwd, secret ]\n      known_http_methods: [ CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, QUERY, TRACE, CUSTOM ]\n```\n\n### Env-based configuration\n\n```dotenv\nOTEL_PHP_INSTRUMENTATION_URL_SANITIZE_FIELD_NAMES=\"passwd,secret\"\nOTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS=\"CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,QUERY,TRACE,CUSTOM\"\n```\n\n## Usage\n\n```php\nuse OpenTelemetry\\API\\Configuration\\ConfigProperties;\nuse OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\Context;\nuse OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\HookManagerInterface;\nuse OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\Instrumentation;\nuse OpenTelemetry\\Contrib\\Instrumentation\\HttpConfig\\HttpConfig;\n\nfinal class CustomHttpInstrumentation implements Instrumentation\n{\n    public function register(HookManagerInterface $hookManager, ConfigProperties $configuration, Context $context): void\n    {\n        $httpConfig = $configuration-\u003eget(HttpConfig::class) ?? new HttpConfig();\n        \n        $httpConfig-\u003e...\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentelemetry-php%2Fcontrib-config-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentelemetry-php%2Fcontrib-config-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentelemetry-php%2Fcontrib-config-http/lists"}