How to monitor dynamic URLs using feign-micrometer · Issue #2664 · OpenFeign/feign · GitHub
Skip to content

How to monitor dynamic URLs using feign-micrometer #2664

Open

Description

@jmilktea
@FeignClient(name = "my-service")
public interface MyClient {

    @PostMapping(consumes = "application/json", headers = {"Content-Type=application/json;charset=utf-8"})
    Response getApi(URI uri, @RequestBody String reqBody);
}

In my scenario, the URL is changing, so I use it as a parameter and use a feign method. But I found that the relevant monitoring can only be at the method level. Can I monitor the URL level? I really need it.

actuator:
feign_Feign_seconds_count{client="MyClient",method="getApi",port="8080"} 8156.0 feign_Feign_seconds_sum{client="MyClient",method="getApi",port="8080"} 807.2327363

Activity

  1. jmilktea commented on Nov 28, 2024

    @jmilktea
    Author
  2. added
    questionGeneral usage or 'how-to' questions
    spring-cloudIssues related to Spring Cloud OpenFeign
    on Jun 18, 2026
  3. velo commented on Jun 18, 2026

    @velo
    Member

    Thanks for following up with the workaround. Since this is mostly about Spring Cloud OpenFeign metrics configuration and dynamic URL tagging, I am marking it as a question rather than a core Feign bug.

    If there is a concrete change needed in feign-micrometer itself, please open a PR with a small reproduction and tests showing the expected observation tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionGeneral usage or 'how-to' questionsspring-cloudIssues related to Spring Cloud OpenFeign

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions