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

4.1.3: Allow config to set camel (default) or snake case for built-in meter names #9434

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

barchetta
Copy link
Member

Backport #9429 to Helidon 4.1.3

Description

Resolves #8422

  1. Adds the metrics config setting built-in-meter-name-format with choices CAMEL (default)andSNAKE. The JavaDoc (and therefore the generated config documentation) notes that selecting SNAKE` does not conform to the MP Metrics spec; the built-in meter names are specified there.
  2. The existing system meters provider now looks at config to decide which naming scheme to use for the built-in meters (memory.usedHeap or memory.used_heap for example).
  3. MP metrics now checks config to decide whether to use REST.request.unmappedException.total or REST.request.unmapped_exception.total.

The sets of names are hard-coded; the new code does not try to convert "camelCase" names automatically to their "snake_case" counterparts.

Documentation

The Javadoc for the new metrics config setting should be a good enough explanation without requiring changes to the doc page itself.

Verified

This commit was signed with the committer’s verified signature.
mayeut Matthieu Darbois
…names (helidon-io#9429)

* Allow config to set camel (default) or snake case for built-in meter names

Signed-off-by: Tim Quinn <tim.quinn@oracle.com>

* Add an MP test for when the SNAKE choice is selected

---------

Signed-off-by: Tim Quinn <tim.quinn@oracle.com>
@barchetta barchetta added metrics backport Issues that are merged into a single branch, but missing in either master or previous release 4.x Version 4.x labels Oct 24, 2024
@barchetta barchetta added this to the 4.1.3 milestone Oct 24, 2024
@barchetta barchetta requested a review from tjquinno October 24, 2024 17:42
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 24, 2024
@barchetta barchetta mentioned this pull request Oct 24, 2024
16 tasks
@barchetta barchetta self-assigned this Oct 24, 2024
@barchetta barchetta merged commit f585d82 into helidon-io:helidon-4.1.x Oct 24, 2024
44 checks passed
@barchetta barchetta deleted the 4.1.3-9429-backport branch January 3, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x backport Issues that are merged into a single branch, but missing in either master or previous release metrics OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants