feat(analytics): add request status field

This commit is contained in:
David Bailey 2025-04-08 10:04:39 +02:00
parent 6ae06b4765
commit 73414fa639
4 changed files with 11 additions and 3 deletions

View file

@ -72,7 +72,7 @@ class MySQLAnalyticsHandler
$path,
$agent,
$referrer,
$time) {
$time, $status = 200) {
if(strlen($path) == 0) {
$path = '/';
@ -83,6 +83,7 @@ class MySQLAnalyticsHandler
'path' => $path,
'agent' => $agent,
'referrer' => $referrer,
'status' => $status
], 'access_sum');
$this->increment_counter([