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-11-26 22:05:17 UTC


README

This library supports Span traces of Symfony HttpKernel requests.

Installation

  1. Install via composer

    composer require pccomponentes/apm-symfony-http-client

Usage

In all cases, an already created instance of ElasticApmTracer is assumed.

Service Container (Symfony)

amp.http_client:
    class: PcComponentes\RuleStorm\Infrastructure\TraceableApmHttpClient
    arguments: 
        $client: '@http_client'
        $elasticApmTracer: '@apm.tracer' # \ZoiloMora\ElasticAPM\ElasticApmTracer instance.

License

Licensed under the MIT license

Read LICENSE for more information