Added documentation + detailed logging
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user