Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docs

This tower middleware can be usefull to easily integrate http metrics into your web server. It doesnt rely on any metrics lib, all you have to do is to access ExposedMetrics via MetricsExposer trait implemetation and log them or collect via any metrics lib like prometheus client.

pub struct ExposedMetrics<'a> {
    pub uri: &'a Uri,
    pub method: &'a str,
    pub status_code: u16,
    pub elapsed_time: &'a Duration,
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages