@hyperttp/metrics
v2.0.0
Published
> English | [Русский](https://github.com/IT-IF-OR/hyperttp-metrics/tree/main/lang/ru)
Downloads
221
Readme
@hyperttp/metrics
English | Русский
Metrics plugin for Hyperttp.
Features
- Collects request lifecycle metrics from the Core v2 pipeline.
- Supports protocol-neutral
SendRequest,UniversalResponse, andRequestContextvalues. - Keeps metrics collection isolated as an optional plugin.
Installation
npm install @hyperttp/metrics
# or
bun add @hyperttp/metricsUsage
import { HyperClient } from "hyperttp";
import { withMetrics } from "@hyperttp/metrics";
const client = new HyperClient({
plugins: [withMetrics()],
});Configure the plugin with the exported MetricsOptions type.
License
MIT © dirold2
