Skip to content

Commit bd05ae7

Browse files
Dynamically Configure UserRequests Ignore Pattern for Custom Pulse Endpoint (#343)
* Adjust ignore value for /pulse in the event of a different endpoint. * Update ignore patterns in pulse.php * Update pulse.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 578f445 commit bd05ae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/pulse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
'sample_rate' => env('PULSE_SLOW_REQUESTS_SAMPLE_RATE', 1),
209209
'threshold' => env('PULSE_SLOW_REQUESTS_THRESHOLD', 1000),
210210
'ignore' => [
211-
'#^/pulse$#', // Pulse dashboard...
211+
'#^/'.env('PULSE_PATH', 'pulse').'$#', // Pulse dashboard...
212212
'#^/telescope#', // Telescope dashboard...
213213
],
214214
],
@@ -225,7 +225,7 @@
225225
'enabled' => env('PULSE_USER_REQUESTS_ENABLED', true),
226226
'sample_rate' => env('PULSE_USER_REQUESTS_SAMPLE_RATE', 1),
227227
'ignore' => [
228-
'#^/pulse$#', // Pulse dashboard...
228+
'#^/'.env('PULSE_PATH', 'pulse').'$#', // Pulse dashboard...
229229
'#^/telescope#', // Telescope dashboard...
230230
],
231231
],

0 commit comments

Comments
 (0)