Skip to content

Commit

Permalink
Configuration Readme Update. (#6)
Browse files Browse the repository at this point in the history
updated readme with new configuration information.
  • Loading branch information
yordadev authored Aug 24, 2022
1 parent dfc5c6f commit c8ad1a9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ Adjust the configuration file to suite your application.
'enabled' => true, // Do you want to capture everything or only slow queries?
'threshold' => 500, // The number of milliseconds it took to execute the query.
],
'context' => [
'auth_user' => [
'enabled' => true, // Do you want to know context of the authenticated user when query is captured?
'ttl' => 300, // How long do you want the session_id/authenticated user cached for?
// without this cache, your application will infinite loop because it will capture
// the user query and loop.
// See closed Issue #1 for context.
],
'trigger' => [
'enabled' => true, // Do you want to know what triggered the query?
// i.e Console command or Request
],
],
],
'listener' => [ // Channel notifications are queued
'connection' => 'sync', // Define what connection to use.
Expand Down

0 comments on commit c8ad1a9

Please sign in to comment.