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

[cmd/mdatagen] Avoid reusing the same ResourceBuilder instance #24762

Merged

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Aug 1, 2023

Add a method to MetricsBuilder to create new instances of ResourceBuilder from the existing configuration instead of creating the ResourceBuilder separately and reusing the same instance for different ResourceMetrics. This allows concurrent usage of the ResourceBuilder instances, which is already needed in k8scluster receiver.

Add an option to MetricsBuilder to create new instances of ResourceBuilder instead of reusing the same builder for all ResourceMetrics and apply this approach. This allows concurrent usage of the ResourceBuilder instances which is already needed in k8scluster receiver.
@dmitryax dmitryax force-pushed the mdatagen-combine-resource-builder branch from b167129 to 45dd0e5 Compare August 1, 2023 04:16
@dmitryax dmitryax merged commit 29ea5a9 into open-telemetry:main Aug 1, 2023
@github-actions github-actions bot added this to the next release milestone Aug 1, 2023
@dmitryax dmitryax deleted the mdatagen-combine-resource-builder branch August 5, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants