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.

v3.1.0 2024-12-13 03:07 UTC

README

Latest Version Total Downloads GitHub license

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,
        ],
    ],
];