Skip to content

metrics: add getter method automatically #4978

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

Merged
merged 2 commits into from
May 28, 2025

Conversation

Watson1978
Copy link
Contributor

@Watson1978 Watson1978 commented May 27, 2025

Which issue(s) this PR fixes:
Fixes #

What this PR does / why we need it:
This PR aim to refactor preparing the getter method of metrics.
In addition, the methods are defined automatically, it prevents we forget to add getter.

Docs Changes:
#4978

Release Note:
Same as the title.

@Watson1978 Watson1978 force-pushed the add-metrics-getter branch 4 times, most recently from 53929d6 to 150c0eb Compare May 27, 2025 08:43
@Watson1978 Watson1978 marked this pull request as ready for review May 27, 2025 08:50
@Watson1978 Watson1978 force-pushed the add-metrics-getter branch from 150c0eb to 0343c40 Compare May 28, 2025 02:15
@Watson1978 Watson1978 requested a review from daipom May 28, 2025 02:17
@daipom daipom added this to the v1.19.0 milestone May 28, 2025
Copy link
Contributor

@daipom daipom left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

Note: It is unclear whether these getters are necessary.
We keep them just in case.
This PR saves us from having to bother with these getters.

If a third-party plugin intentionally has a getter, it will not be overwritten.
There will be no impact from this fix.

@daipom daipom merged commit c43586e into fluent:master May 28, 2025
13 checks passed
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.

2 participants