add fastrace layer

This commit is contained in:
Aleksandr 2025-10-06 00:30:10 +03:00
parent 6e4aed3ce9
commit 3708d13ee9
2 changed files with 6 additions and 2 deletions

View file

@ -47,7 +47,9 @@ pub async fn serve(rx: SlaveRx, config: config::Config, router: axum::Router) ->
pub fn make_router<T: Types>(service: T::Service) -> axum::Router {
let scope = handler::RouterScope::root(State::<T> { service });
routes::make(scope).into_axum()
routes::make(scope)
.into_axum()
.layer(fastrace_axum::FastraceLayer)
}
#[perfect_derive(Clone)]