Skip to content
New issue

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

How to monitor dynamic URLs using feign-micrometer #2664

Open
jmilktea opened this issue Nov 22, 2024 · 1 comment
Open

How to monitor dynamic URLs using feign-micrometer #2664

jmilktea opened this issue Nov 22, 2024 · 1 comment

Comments

@jmilktea
Copy link

@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

@jmilktea
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant