|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
Middleware for tracking HTTP request metrics. More...
#include <Metrics.hpp>
Static Public Member Functions | |
| static routing::Middleware | track () |
| Returns a middleware handler that tracks requests: | |
Middleware for tracking HTTP request metrics.
|
static |
Returns a middleware handler that tracks requests:
orbit_http_requests_total{method,status} (counter)orbit_http_request_duration_seconds{method} (histogram)orbit_http_requests_in_flight (gauge)orbit_http_request_bytes_total / orbit_http_response_bytes_total (counters)Serve them with App::enable_metrics(). WebSocket upgrades are not counted.