Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pccomponentes/apm-symfony-http-kernel
- Owner: PcComponentes
- License: mit
- Created: 2020-05-28T06:44:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-22T08:35:18.000Z (over 3 years ago)
- Last Synced: 2024-09-23T22:12:51.130Z (about 2 months ago)
- Topics: apm, elasticsearch, http, symfony, symfony-httpkernel
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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