friendsofhyperf / telescope-elasticsearch
it will allow you to switch from sql database to elasticsearch as driver for your data storage and it will eliminate the deadlock so it makes telescope a ready for production logging system.
Fund package maintenance!
huangdijia
hdj.me/sponsors
Requires
- friendsofhyperf/telescope: ~3.1.49
- hyperf/collection: ~3.1.0
- hyperf/guzzle: ~3.1.0
- hyperf/stringable: ~3.1.0
Suggests
- elasticsearch/elasticsearch: Required to use Elasticsearch Client.(^7.17.0||^8.8.0)
This package is auto-updated.
Last update: 2024-12-13 11:52:17 UTC
README
It will allow you to switch from an SQL database to Elasticsearch as a driver for your data storage, and it will eliminate deadlocks, making Telescope a ready-for-production logging system.
Installation
composer require friendsofhyperf/telescope-elasticsearch
Publish Config
php bin/hyperf.php vendor:publish friendsofhyperf/telescope --id=config
Configuration
// config/autoload/telescope.php return [ 'driver' => 'elasticsearch', 'storage' => [ 'elasticsearch' => [ 'driver' => FriendsOfHyperf\TelescopeElasticsearch\Storage\ElasticsearchEntriesRepository::class, 'index' => 'telescope_entries', 'hosts' => ['127.0.0.1'], 'username' => null, 'password' => null, ], ], ];