EmbarkStudios / server-framework

Framework for running network services, opinions included
Apache License 2.0
36 stars 4 forks source link

Support providing more buckets for histogram metrics #11

Closed davidpdrsn closed 2 years ago

davidpdrsn commented 2 years ago

Fixes #8

Example usage:

Server::new(config)
    .with(routes)
    .metric_buckets(vec![(
        Matcher::Full("foobar".to_owned()),
        vec![0.0, 100.0, 200.0],
    )])
    .serve()
    .await;

Exactly what we have internally.