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 a separate Params struct for Target Allocator #3043

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

swiatekm
Copy link
Contributor

Make the builder definitions more generic to allow different Params structures for different builders. Use this to define a separate Params structure for the TargetAllocator.

@swiatekm swiatekm added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jun 17, 2024
@swiatekm swiatekm requested a review from a team as a code owner June 17, 2024 14:13
Comment on lines +64 to +68
Client: params.Client,
Scheme: params.Scheme,
Recorder: params.Recorder,
Log: params.Log,
Config: params.Config,
Copy link
Contributor

@jaronoff97 jaronoff97 Jun 17, 2024

Choose a reason for hiding this comment

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

Given that these things are generic to any params, i wonder if it would be better to define a common type that always has these and the generic parameter is that type such that a TA params would just be

package targetallocator

type Params {
     manifestutils.Params
     Collector ...
     TargetAllocator ....
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good to me, though I'd rather do this as a follow-up after the opamp bridge reconciler starts using its own Params struct as well.

@swiatekm swiatekm merged commit 2a70ce7 into open-telemetry:main Jun 19, 2024
33 checks passed
@swiatekm swiatekm deleted the chore/ta-params branch June 19, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants