mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
record histogram of http requests
This commit is contained in:
parent
a0b92c82e8
commit
04ecf4972e
2 changed files with 95 additions and 6 deletions
|
|
@ -196,7 +196,8 @@ async fn run_server() -> io::Result<()> {
|
|||
.max_request_size
|
||||
.try_into()
|
||||
.expect("failed to convert max request size"),
|
||||
));
|
||||
))
|
||||
.layer(axum::middleware::from_fn(observability::http_metrics_layer));
|
||||
|
||||
let app = routes(config).layer(middlewares).into_make_service();
|
||||
let handle = ServerHandle::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue