pccomponentes / apm-symfony-http-client
Elastic APM for Symfony HttpClient
0.1.0
2020-06-26 11:48 UTC
Requires
- php: ^7.4
- symfony/http-client-contracts: ^2.1-dev
- zoilomora/elastic-apm-agent-php: ^0.1
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-26 21:41:56 UTC
README
此库支持Symfony HttpKernel请求的Span跟踪。
安装
-
通过composer安装
composer require pccomponentes/apm-symfony-http-client
使用方法
在所有情况下,假设已创建了一个ElasticApmTracer的实例。
服务容器(Symfony)
amp.http_client: class: PcComponentes\RuleStorm\Infrastructure\TraceableApmHttpClient arguments: $client: '@http_client' $elasticApmTracer: '@apm.tracer' # \ZoiloMora\ElasticAPM\ElasticApmTracer instance.
许可证
根据MIT许可证授权
阅读LICENSE获取更多信息