[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/core](../README) / metrics

# metrics

In-process HTTP request metrics (the `@zerotal/core/metrics` subpath) —
request counts by status class, latency (avg / p95 / max), and short-window
throughput. Recorded once per request by the server and surfaced on the admin
Health page; best-effort, memory-safe, and reset on process restart.

## Example

```ts
import { httpMetrics } from "@zerotal/core/metrics";

const snapshot = httpMetrics();
console.log(snapshot.total, snapshot.successRate, snapshot.p95Ms);
```

## Interfaces

- [HttpMetricsSnapshot](interfaces/HttpMetricsSnapshot)

## Functions

- [beginHttp](functions/beginHttp)
- [endHttp](functions/endHttp)
- [recordHttp](functions/recordHttp)
- [httpMetrics](functions/httpMetrics)
