We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paths are not supported with std.HandlerProvider
std.HandlerProvider
http_request_duration_seconds_count{code="500",handler="/hello/123",method="GET",service=""} 1 http_request_duration_seconds_count{code="500",handler="/hello/321",method="GET",service=""} 1
Should be:
http_request_duration_seconds_count{code="500",handler="/hello/{key}",method="GET",service=""} 2
Code example:
r := mux.NewRouter() r.Use(std.HandlerProvider("", metrics_middleware.New(metrics_middleware.Config{ Recorder: metrics.NewRecorder(metrics.Config{}), }))) r.HandleFunc("/hello/{key}", hello).Methods("GET")
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Paths are not supported with
std.HandlerProvider
Should be:
Code example:
The text was updated successfully, but these errors were encountered: