Micrometer metric tag for http method #1631
Labels
proposal
Proposed Specification or API change
waiting for votes
Enhancements or changes proposed that need more support before consideration
Description
The
method
tag added byfeign-micrometer
is the method name of the interface, not the http method. For example, metrics for requests made with the following client:will have a
method
tag with a value ofgetIssues
.This becomes problematic when the same URI is used with multiple http methods:
Metrics for these requests will have a
method
tag ofgetIssues
orcreateIssues
respectively, but both have the sameuri
tag with a value of/repos/{owner}/{repo}/issues
. This makes it difficult to separate the two metrics intuitively without knowledge of the specific client implementation.Proposal:
Add a tag named
http_method
(or something similar) with the value of the http method for the request.The text was updated successfully, but these errors were encountered: