File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,19 @@ Adjust the configuration file to suite your application.
5050 'enabled' => true, // Do you want to capture everything or only slow queries?
5151 'threshold' => 500, // The number of milliseconds it took to execute the query.
5252 ],
53+ 'context' => [
54+ 'auth_user' => [
55+ 'enabled' => true, // Do you want to know context of the authenticated user when query is captured?
56+ 'ttl' => 300, // How long do you want the session_id/authenticated user cached for?
57+ // without this cache, your application will infinite loop because it will capture
58+ // the user query and loop.
59+ // See closed Issue #1 for context.
60+ ],
61+ 'trigger' => [
62+ 'enabled' => true, // Do you want to know what triggered the query?
63+ // i.e Console command or Request
64+ ],
65+ ],
5366 ],
5467 'listener' => [ // Channel notifications are queued
5568 'connection' => 'sync', // Define what connection to use.
You can’t perform that action at this time.
0 commit comments