-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[chore] unexport structs in cumulativetodeltaprocessor #42110
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
[chore] unexport structs in cumulativetodeltaprocessor #42110
Conversation
- State -> state (unexported internal implementation detail) - PrevPoint -> prevPoint (unexported internal field) - Keeps public API structs (ValuePoint, HistogramPoint, MetricPoint, DeltaValue) exported as intended
78a0ade to
a564114
Compare
atoulme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You typically don't need to do this because these are under internal, so they will never be exported by the module. But that's fine.
|
@TylerHelmuth what is your take on this PR? is it ok? |
|
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
|
Hello, Would you have a moment to review this PR when you get a chance? |
Description
This PR unexports internal structs in the cumulativetodeltaprocessor that are not part of the public API, improving API stability by reducing the exposed surface area.
Link to tracking issue
Fixes #40641
Changes Made
Unexported structs:
State→state(internal tracking state implementation detail)PrevPoint→prevPoint(internal field of the state struct)Structs kept exported (as they should be):
Config&MatchMetrics- Part of public configuration APIMetricIdentity- Used in public functionsInitialValue- Used in config with marshalingMetricTracker- Public API of the tracking packageValuePoint- Part of the public tracking APIHistogramPoint- Part of the public tracking APIMetricPoint- Part of the public tracking APIDeltaValue- Part of the public tracking APITesting