# Reference: server.diagnostics

URL: https://scalws.com/docs/reference/server-diagnostics/
Source: `docs/reference/schema` in the ScalWS repository

<h3 id="server.diagnostics.recent_requests"><code>server.diagnostics.recent_requests</code></h3>

| | |
|---|---|
| Syntax | `recent_requests: <integer>` |
| Default | `50` |
| Context | `server.diagnostics` |
| Reload | applies on reload |

Failed or slow requests kept per application.


<h3 id="server.diagnostics.slow_request"><code>server.diagnostics.slow_request</code></h3>

| | |
|---|---|
| Syntax | `slow_request: <duration> (e.g. 30s)` |
| Default | `1s` |
| Context | `server.diagnostics` |
| Reload | applies on reload |

Requests slower than this (until the body is finished) are kept as recent requests.
