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

Fix metrics for InstrumentedEE10Handler #3928

Merged
merged 2 commits into from
Jun 9, 2024

Conversation

zUniQueX
Copy link
Member

As described in #3917, the InstrumentedEE10Handler doesn't properly collect metrics in some cases, e.g. when a Jersey method returns a completed CompletableFuture.

This PR performs the response metrics update after the Jetty Callback finishes, i.e. the response is committed. This simplifies the logic between synchronous and asynchronous requests.

Fixes #3917

@joschi joschi merged commit 607e6d1 into dropwizard:release/4.2.x Jun 9, 2024
5 checks passed
yaooqinn pushed a commit to apache/spark that referenced this pull request Jun 12, 2024
### What changes were proposed in this pull request?

Upgrade dropwizard metrics to 4.2.26.

### Why are the changes needed?

There are some bug fixes as belows:

- Correction for the Jetty-12 QTP metrics by dkaukov in dropwizard/metrics#4181

- Fix metrics for InstrumentedEE10Handler by zUniQueX in dropwizard/metrics#3928

The full release notes:
https://github.com/dropwizard/metrics/releases/tag/v4.2.26

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Passed GA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #46932 from wayneguow/codahale.

Authored-by: Wei Guo <guow93@gmail.com>
Signed-off-by: Kent Yao <yao@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InstrumentedEE10Handler not recording metrics on Jetty 12 with Jersey CompletableFuture
2 participants