Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pccomponentes/apm-symfony-http-kernel

Elastic APM for Symfony HttpKernel
https://github.com/pccomponentes/apm-symfony-http-kernel

apm elasticsearch http symfony symfony-httpkernel

Last synced: 10 days ago
JSON representation

Elastic APM for Symfony HttpKernel

Awesome Lists containing this project

README

        

# Elastic APM for Symfony HttpKernel

This library supports Span traces of [Symfony HttpKernel](https://github.com/symfony/http-kernel) requests.

## Installation

1) Install via [composer](https://getcomposer.org/)

```shell script
composer require pccomponentes/apm-symfony-http-kernel
```

## Usage

In all cases, an already created instance of [ElasticApmTracer](https://github.com/zoilomora/elastic-apm-agent-php) is assumed.

### Service Container (Symfony)

```yaml
PcComponentes\ElasticAPM\Symfony\Component\HttpKernel\EventSubscriber:
class: PcComponentes\ElasticAPM\Symfony\Component\HttpKernel\EventSubscriber
autoconfigure: true
arguments:
$router: '@router'
$elasticApmTracer: '@apm.tracer' # \ZoiloMora\ElasticAPM\ElasticApmTracer instance.
```

## License
Licensed under the [MIT license](http://opensource.org/licenses/MIT)

Read [LICENSE](LICENSE) for more information