mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 14:11:13 -05:00
Implement client-side error timing
This commit is contained in:
@@ -57,8 +57,7 @@ Timestamp: ${format(new Date(error.created_at), 'PPpp')}
|
||||
Type: ${error.error_type}
|
||||
Endpoint: ${error.endpoint}
|
||||
Method: ${error.method}
|
||||
Status: ${error.status_code}
|
||||
Duration: ${error.duration_ms}ms
|
||||
Status: ${error.status_code}${error.duration_ms != null ? `\nDuration: ${error.duration_ms}ms` : ''}
|
||||
|
||||
Error Message:
|
||||
${error.error_message}
|
||||
@@ -117,10 +116,12 @@ ${error.error_stack ? `Stack Trace:\n${error.error_stack}` : ''}
|
||||
<label className="text-sm font-medium">Status Code</label>
|
||||
<p className="text-sm">{error.status_code}</p>
|
||||
</div>
|
||||
<div>
|
||||
<label className="text-sm font-medium">Duration</label>
|
||||
<p className="text-sm">{error.duration_ms}ms</p>
|
||||
</div>
|
||||
{error.duration_ms != null && (
|
||||
<div>
|
||||
<label className="text-sm font-medium">Duration</label>
|
||||
<p className="text-sm">{error.duration_ms}ms</p>
|
||||
</div>
|
||||
)}
|
||||
{error.user_id && (
|
||||
<div>
|
||||
<label className="text-sm font-medium">User ID</label>
|
||||
|
||||
Reference in New Issue
Block a user