Added documentation + detailed logging

This commit is contained in:
2024-12-04 17:45:27 -06:00
parent 5dad2d5275
commit 078791ee64
3 changed files with 241 additions and 124 deletions

View File

@ -15,6 +15,15 @@ type PerformanceMetrics struct {
MaxLatency time.Duration
MinLatency time.Duration
ResponseCounters map[int]int32
RequestLatencies []RequestMetric
}
// RequestMetric represents a single request's performance metrics
type RequestMetric struct {
Timestamp time.Time
Duration time.Duration
StatusCode int
Verb string
}
// RequestError represents a detailed error that occurs during an HTTP request