type
RequestObservation
type RequestObservation struct {
// Time is when the observation was recorded.
Time time.Time
// RequestID correlates the observation with audit events and logs.
RequestID string
// Method is the HTTP request method.
Method string
// Path is the requested URL path.
Path string
// Status is the HTTP response status code.
Status int
// ErrorCode is the stable public Ridu code for a failed request.
ErrorCode string
// ResponseBytes is the number of response-body bytes written.
ResponseBytes int64
// Duration is the total handler execution time.
Duration time.Duration
}Transport timing and response metadata for one completed request.
Timetime.Time- When the observation was recorded.
RequestIDstring- Correlates the observation with audit events and logs.
Methodstring- The HTTP request method.
Pathstring- The requested URL path.
Statusint- The HTTP response status code.
ErrorCodestring- The stable public Ridu code for a failed request.
ResponseBytesint64- The response-body byte count.
Durationtime.Duration- The complete handler execution time.