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

Add response code meters for jetty9 #3133

Merged

Conversation

dennyac
Copy link
Contributor

@dennyac dennyac commented Jan 30, 2023

Similar to #3043, we have use cases where we want to instrument specific server response codes instead of the aggregated 1xx/2xx/3xx/4xx/5xx meters.

This PR adds configurable individual response code meters in jetty. If this approach is acceptable, I'll create an accompanying PR in dropwizard to allow this to be specified in config via AbstractServerFactory

This change is backwards compatible and the default behavior will only include the existing 1xx/2xx/3xx/4xx/5xx meters. Can port this over to metrics-jetty10 and metrics-jetty11 modules as well.

@dennyac dennyac requested review from a team as code owners January 30, 2023 06:51
@gitpod-io
Copy link

gitpod-io bot commented Jan 30, 2023

@dennyac
Copy link
Contributor Author

dennyac commented Jan 30, 2023

FYI - @joschi

Copy link
Member

@joschi joschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dennyac Thanks a lot for your numerous contributions!

It would be great if you would also port this feature to the modules for Jetty 10.x and 11.x. 😄

@joschi joschi added this to the 4.2.16 milestone Feb 7, 2023
@joschi joschi added the feature label Feb 7, 2023
@joschi joschi self-assigned this Feb 7, 2023
@joschi joschi merged commit bdce01c into dropwizard:release/4.2.x Feb 7, 2023
joschi added a commit that referenced this pull request Feb 12, 2023
joschi added a commit that referenced this pull request Feb 12, 2023
joschi added a commit that referenced this pull request May 30, 2023
joschi added a commit that referenced this pull request May 30, 2023
joschi added a commit that referenced this pull request Jan 19, 2024
joschi added a commit that referenced this pull request Jan 19, 2024
joschi added a commit that referenced this pull request Jan 19, 2024
joschi added a commit that referenced this pull request Jan 19, 2024
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.

2 participants