type
RequestObservation
Completed request timing, route, response size, error code, and status metadata.
Properties
| Property | Type | Description |
|---|---|---|
Time | time.Time | When the observation was recorded. |
RequestID | string | Correlates the observation with audit events and logs. |
Method | string | The HTTP request method. |
Path | string | The requested URL path. |
Status | int | The HTTP response status code. |
ErrorCode | string | The stable public Ridu code for a failed request. |
ErrorReason | string | ErrorReason is the specific code behind ErrorCode, such as origin_denied behind access_denied or body_too_large behind bad_request. Responses carry only ErrorCode; use ErrorReason for monitoring and alerts. |
ResponseBytes | int64 | The response-body byte count. |
Duration | time.Duration | The complete handler execution time. |