{"id":19188776,"url":"https://github.com/miquido/request-data-collector-guzzle","last_synced_at":"2026-05-14T21:04:00.911Z","repository":{"id":50935648,"uuid":"177816536","full_name":"miquido/request-data-collector-guzzle","owner":"miquido","description":"The project was made by Miquido. https://www.miquido.com/","archived":false,"fork":false,"pushed_at":"2021-10-18T11:05:48.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-04T06:16:48.015Z","etag":null,"topics":["guzzle","laravel","monitoring","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miquido.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-26T15:26:15.000Z","updated_at":"2024-12-16T06:27:59.000Z","dependencies_parsed_at":"2022-08-25T12:01:23.028Z","dependency_job_id":null,"html_url":"https://github.com/miquido/request-data-collector-guzzle","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Frequest-data-collector-guzzle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Frequest-data-collector-guzzle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Frequest-data-collector-guzzle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Frequest-data-collector-guzzle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miquido","download_url":"https://codeload.github.com/miquido/request-data-collector-guzzle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240266843,"owners_count":19774072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["guzzle","laravel","monitoring","php"],"created_at":"2024-11-09T11:25:59.923Z","updated_at":"2026-05-14T21:03:55.870Z","avatar_url":"https://github.com/miquido.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Request Data Collector - Guzzle collector\n\nThis package is an extension to the Request Data Collector. Allows collecting Guzzle requests.\n\n[![GitHub license](https://img.shields.io/badge/license-Apache2.0-brightgreen.svg)](https://github.com/miquido/request-data-collector-guzzle/blob/master/LICENSE)\n[![Build](https://github.com/miquido/request-data-collector-guzzle/workflows/PHP/badge.svg?branch=master)](https://github.com/miquido/request-data-collector-guzzle/actions?query=branch%3Amaster)\n\n## Set up\n\n### GuzzleCollector\n\nThis collector is being used to collect data about performed Guzzle requests.\n\n```php\n'guzzle' =\u003e [\n\t'driver' =\u003e \\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::class,\n\n\t'decorate' =\u003e [\n\t\t'with' =\u003e \\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\Guzzle6ClientDecorator::class,\n\n\t\t'abstracts' =\u003e [\n\t\t\tabstract =\u003e [\n\t\t\t\t'type'    =\u003e \\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::TYPE_*,\n\t\t\t\t'create'  =\u003e boolean,\n\t\t\t\t'collect' =\u003e [\n\t\t\t\t\t\\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::INFO_BY,\n\t\t\t\t\t\\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::INFO_VIA,\n\t\t\t\t\t\\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::INFO_METHOD,\n\t\t\t\t\t\\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::INFO_URI,\n\t\t\t\t\t\\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::INFO_HEADERS,\n\t\t\t\t\t\\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::INFO_OPTIONS,\n\t\t\t\t],\n\t\t\t],\n\t\t\t\n\t\t\t// ...\n\t\t],\n\t],\n],\n```\n\n#### decorate.with\n\nDefines Guzzle Client decorator class responsible for collecting requests.\n\n#### decorate.abstracts\n\nDefines a list of Guzzle Clients registered in the container. All abstracts will be decorated with class defined in `decorate.with`.\n\nEvery abstract is being defined in following way:\n\n```php\nabstract =\u003e [\n\t'type'   =\u003e \\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::TYPE_*,\n\t'create' =\u003e boolean,\n\t'collect' =\u003e [\n\t\t// \\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::INFO_*\n\t],\n],\n```\n\n**abstract** is the name under which instance has been registered in the container (e.g. `my-guzzle-client` or `\\GuzzleHttp\\ClientInterface::class`).\n\n**type** defines the type of abstract (see `\\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::TYPE_*` constants).\n\n**collect** defines list of request's information that should be logged (see `\\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::INFO_*` constants). If missing, all information will be used. The `times` information will always be available.\n\nAdditionally, You can include and exclude headers (case-insensitive). Remember, that **inclusions have priority over exclusions**.\n\n```php\nabstract =\u003e [\n\t// ...\n\n\t'collect' =\u003e [\n\t\t\\Miquido\\RequestDataCollector\\Collectors\\GuzzleCollector\\GuzzleCollector::INFO_HEADERS =\u003e [\n\t\t\t// We don't want Authorization header to be present in logs\n\t\t\t'excludes' =\u003e [\n\t\t\t\t'Authorization'\n\t\t\t],\n\n\t\t\t// From all headers that has been sent, only those are interesting for us\n\t\t\t'includes' =\u003e [\n\t\t\t\t'Accept',\n\t\t\t\t'content-type',\n\t\t\t],\n\t\t],\n\t],\n],\n```\n\nWhen **create** equals `true`, defines to add an instance to the container even if it does not exist.\n\n## About\n\nThe project was made by Miquido: https://www.miquido.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiquido%2Frequest-data-collector-guzzle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiquido%2Frequest-data-collector-guzzle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiquido%2Frequest-data-collector-guzzle/lists"}