pccomponentes/apm-symfony-http-client

Elastic APM for Symfony HttpClient

0.1.0 2020-06-26 11:48 UTC

This package is auto-updated.

Last update: 2024-09-26 21:41:56 UTC


README

此库支持Symfony HttpKernel请求的Span跟踪。

安装

  1. 通过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获取更多信息