vocento/request-id
最新稳定版本:v1.2.0
Composer 安装命令:
composer require vocento/request-id
包简介
HTTP Request identifier to trace requests through microservices calls
README 文档
README
This library contains the class and the way a RequestId should be used between the microservices calls.
Installation
To install the library, include the package as a requirement in your composer.json file.
composer require vocento/request-id
Usage
To create a new request id, import the class and the call the method create.
<?php ... use Vocento\RequestId; class Foo { ... public function method() { ... // Create a new request id $requestId = RequestId::create(); // Create a request id from var $requestId = RequestId::create($currentRequestId); // Create a request id from string $requestId = RequestId::create('my-own-request-id'); // Get the request id value $requestId->getId(); // Get the request id header name $headerName = RequestId::HEADER_NAME; $headerName = $requestId->getHeaderName(); ... } ... }
统计信息
- 总下载量: 45.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2016-10-10