auxmoney/opentracing-bundle-guzzle
最新稳定版本:v1.3.0
Composer 安装命令:
composer require auxmoney/opentracing-bundle-guzzle
包简介
Symfony Opentracing bundle extension for Guzzle
关键字:
README 文档
README
This bundle adds automatic header injection for Guzzle clients to the OpentracingBundle.
Installation
Prerequisites
This bundle is only an additional plugin and should not be installed independently. See its documentation for more information on installing the OpentracingBundle first.
Require dependencies
After you have installed the OpentracingBundle:
- require the dependencies:
composer req auxmoney/opentracing-bundle-guzzle
Enable the bundle
If you are using Symfony Flex, you are all set!
If you are not using it, you need to manually enable the bundle:
- add bundle to your application:
# Symfony 3: AppKernel.php $bundles[] = new Auxmoney\OpentracingGuzzleBundle\OpentracingGuzzleBundle();
# Symfony 4+: bundles.php Auxmoney\OpentracingGuzzleBundle\OpentracingGuzzleBundle::class => ['all' => true],
Configuration
No configuration is necessary, the provided compiler pass will try to enhance existing Clients by adding a middleware to their HandlerStacks.
Usage
When sending a request to other systems, the tracing headers are automatically injected into the requests, thus enabling the full power of distributed tracing.
Development
Be sure to run
composer run-script quality
every time before you push code changes. The tools run by this script are also run in the CI pipeline.
统计信息
- 总下载量: 167.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-07