pccomponentes / apm-redis-reporter
Elastic APM Redis Reporter
Installs: 13 257
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 1
Open Issues: 0
Requires
- php: >=7.0
- ext-json: *
- ext-zlib: *
- predis/predis: ^1.1
- zoilomora/elastic-apm-agent-php: ^0.1 | ^1.0
README
This library supports the report of traces from the APM Agent to Redis.
Installation
-
Install via composer
composer require pccomponentes/apm-redis-reporter
Usage
Native PHP
<?php declare(strict_types=1); $redisClient = new Predis\Client('tcp://redis:6379?database=0'); $key = 'apm'; $reporter = new PcComponentes\ElasticAPM\Reporter\RedisReporter( $redisClient, $key ); $apmTracer = new ZoiloMora\ElasticAPM\ElasticApmTracer( // ZoiloMora\ElasticAPM\Configuration\CoreConfiguration::class $reporter, // ZoiloMora\ElasticAPM\Pool\PoolFactory::class ); /** ... Use the connection in your project */
License
Licensed under the MIT license
Read LICENSE for more information