You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
CodeGangsta44
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
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:
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.
The text was updated successfully, but these errors were encountered: