Redis commands
Flare can collect information about the Redis commands being executed in your application. This includes:
- The command
- The command parameters
- The namespace (database)
- The Redis server IP & port
This functionality is disabled by default, but you can enable it by adding the Redis
collect in config.php
:
use Spatie\FlareClient\Enums\CollectType;
'collects' => FlareConfig::defaultCollects(
extra: [CollectType::RedisCommands => []],
),
You can configure the maximum number of Redis commands tracked while collecting data in the case of an error as such:
'collects' => FlareConfig::defaultCollects(
extra: [
CollectType::defaultCollects->value => [
'max_items_with_errors' => 10,
],
]
),
Collection of Redis commands will happen automatically.