ostrolucky / newrelic-datastore-redis-cluster-extension
Provides RedisCluster phpredis integration for NR APM datastore by forwarding redis calls through newrelic_record_datastore_segment function
Installs: 4 946
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.4 || ^8
- snc/redis-bundle: >=4.1
- symfony/dependency-injection: >=4.4.27
Requires (Dev)
- ext-redis: *
- friendsofphp/proxy-manager-lts: >=1.0
- phpunit/phpunit: >=9.5.5
- ramsey/coding-standard: ^2.0
- symfony/config: >=4.4.12
- symfony/console: *
- symfony/http-foundation: >=4.4.30
README
Provides missing \RedisCluster datastore integration to NewRelic PHP extension
About
You might have found out NewRelic PHP extension doesn't support to monitor \RedisCluster queries.
You can see that in their knowledge base as well as in their bug tracker.
What NewRelic support recommends doing, is to use custom instrumentation via newrelic_record_datastore_segment. However, doing that manually is cumbersome. Redis has lot of functions.. That's where this package comes in play. It's meant to be used along snc/redis-bundle. You install it and voila, you should be able to see redis commands in your NewRelic APM screen.
Installation
Install this package as a dependency using Composer.
composer require ostrolucky/newrelic-datastore-redis-cluster-extension
There is also one prerequisite for snc_redis: Logging of your snc_redis client MUST be enabled.
Copyright and License
The ostrolucky/newrelic-datastore-redis-cluster-extension library is copyright © Gabriel Ostrolucký and licensed for use under the terms of the MIT License (MIT). Please see LICENSE for more information.