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

Introduce request attribute to enable global metrics use runtime request tags #398

Merged
merged 5 commits into from Jun 20, 2023

Conversation

trnguyencflt
Copy link
Member

@trnguyencflt trnguyencflt commented Jun 12, 2023

This PR introduces a request attribute GLOBAL_STATS_REQUEST_TAGS_ENABLED_PROP_KEY to enable global stats (metrics for all resource methods) to include runtime tags from the requests.

This will enable us to have tenant metrics whenever tenant tag is set in application resources (from ce-kafka-rest) for example.

This attributes is also used to keep the compatibility with all downstream apps that use rest-utils.

PR for ce-kafka-rest will be followup after this.

@trnguyencflt trnguyencflt force-pushed the KREST-10466-enable-tenant-level-metrics-jersey branch from 1d97936 to b157898 Compare June 12, 2023 16:51
@trnguyencflt trnguyencflt marked this pull request as ready for review June 13, 2023 09:47
@trnguyencflt trnguyencflt requested review from a team as code owners June 13, 2023 09:47
Copy link
Member

@msn-tldr msn-tldr left a comment

Choose a reason for hiding this comment

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

Will wait for the PR where this is used, to better understand its usage.

@trnguyencflt
Copy link
Member Author

@msn-tldr the other PR is here https://github.com/confluentinc/ce-kafka-rest/pull/464/ please have a look 👍 , thanks

Copy link
Member

@msn-tldr msn-tldr left a comment

Choose a reason for hiding this comment

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

LGTM, minor comments, to improve comments on test to make it obvious the intention.

@trnguyencflt trnguyencflt merged commit 001eca9 into master Jun 20, 2023
3 checks passed
@trnguyencflt trnguyencflt deleted the KREST-10466-enable-tenant-level-metrics-jersey branch June 20, 2023 12:04
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

Successfully merging this pull request may close these issues.

None yet

2 participants