Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pccomponentes/apm-twig
Elastic APM for Twig
https://github.com/pccomponentes/apm-twig
apm elasticsearch twig twig-extension
Last synced: about 2 months ago
JSON representation
Elastic APM for Twig
- Host: GitHub
- URL: https://github.com/pccomponentes/apm-twig
- Owner: PcComponentes
- License: mit
- Created: 2020-05-28T06:46:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T07:19:31.000Z (over 4 years ago)
- Last Synced: 2024-11-06T00:08:28.174Z (about 2 months ago)
- Topics: apm, elasticsearch, twig, twig-extension
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elastic APM for Twig
This library supports Span traces of [Twig](https://github.com/twigphp/Twig) renderings.
## Installation
1) Install via [composer](https://getcomposer.org/)
```shell script
composer require pccomponentes/apm-twig
```## Usage
In all cases, an already created instance of [ElasticApmTracer](https://github.com/zoilomora/elastic-apm-agent-php) is assumed.
### Service Container (Symfony)
```yaml
twig.extension.apm:
class: PcComponentes\ElasticAPM\Twig\Extension\ApmExtension
arguments:
$profile: '@twig.profile'
$elasticApmTracer: '@apm.tracer' # \ZoiloMora\ElasticAPM\ElasticApmTracer instance.
public: false
tags:
- { name: twig.extension }
```## License
Licensed under the [MIT license](http://opensource.org/licenses/MIT)Read [LICENSE](LICENSE) for more information