go-http-metrics
go-http-metrics copied to clipboard
Go modular http middleware to measure HTTP requests independent of metrics backend (with Prometheus and OpenCensus as backend implementations) and http framework/library
I want to be able to use the handlerID in downstream contexts. This PR adds it to the various framework's context equivalents if possible. Kind of hard to add tests...
Hello @slok, I've added custom labels support for my project and now I see that this may be the solution for #47. Also did tiny tests cleanup during my work....
Close #100 With this diff: ```diff diff --git a/examples/default/main.go b/examples/default/main.go index b5bcc33..3c69f1e 100644 --- a/examples/default/main.go +++ b/examples/default/main.go @@ -29,7 +29,8 @@ const ( func main() { // Create our middleware....
Hi @slok , When using `http` directly I do see how to set a specific `handlerID` for each route: https://github.com/slok/go-http-metrics/blob/master/examples/custom/main.go#L54-L57 But in the `chi` example there is none: https://github.com/slok/go-http-metrics/blob/master/examples/chi/main.go Since...
This enables metrics collection from "black-box" muxers like the one in grpc-gateway.
Hello. Thank you for creating and maintaining this wonderful library. I've used it in a number of contexts and never encountered a situation I couldn't solve out-of-the-box using the available...
* I think there is no way to ignore specific paths. * Ex, health check and prometheus scrap endpoint * What do you think that add configuration option for ignoring...
This PR allows to add customized labels based on HTTP header. A custom reporter can define a list of customized labels. A new function CustomHeader can parse the header and...
Just a request: would it be possible to add functionality that enables custom labels on the collected metrics? I would like to classify requests by the customer id which is...
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.2 to 3.1.0. Release notes Sourced from actions/checkout's releases. v3.1.0 What's Changed Inject GitHub host to be able to clone from another GitHub instance by @peter-murray in...