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

Active client requests metric is not decreased in case of cancelled request #3609

Open
jdmEveryDay opened this issue Nov 29, 2024 · 0 comments

Comments

@jdmEveryDay
Copy link

Describe the bug
Hello, I'm experiencing an issue with Spring Cloud Gateway where the http_client_requests_active_seconds_count metric does not decrease when an inbound HTTP request is cancelled by the client. This leads to an inaccurate count of active client requests, which increases indefinitely with each cancelled request.

Environment:

  • Spring Boot Version: 3.3.6
  • Spring Cloud Version: 2023.0.4
  • Spring Cloud Gateway Version: 4.1.6

Sample
Please see demo project with steps to reproduce.

Expected behaviour
The http_client_requests_active_seconds_count metric should decrement when a client cancels an inbound HTTP request, accurately reflecting the number of active outbound client requests.

Is this a known issue with Spring Cloud Gateway or Micrometer? Are there any recommended workarounds or configurations to ensure the metric decrements upon request cancellation?

Thank you for your assistance in resolving this issue.

@jdmEveryDay jdmEveryDay changed the title Active client requests metric is not decremented in case of cancelled request Active client requests metric is not decreased in case of cancelled request Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant