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] Consolidate resource building workflow #24443

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Jul 24, 2023

Use the recently introduced ResourceBuilder in MetricsBuilder instead of generating separate logic for resource creation. This consolidation will make all the future improvements to the ResourceBuilder applicable to scraping receivers and resource processors, removing the need to make the same improvements in two places.

This also opens the door for getting away from the sequential ResourceMetrics building using EmitForResource towards a better structured map-based approach. The draft PR including the next steps: #24444

@dmitryax dmitryax force-pushed the mdatagen-with-resource branch from f642d84 to df46db0 Compare July 24, 2023 10:13
@dmitryax dmitryax changed the title [cmd/mdatagen] Consolidate resource building [cmd/mdatagen] Consolidate resource building workflow Jul 24, 2023
@dmitryax dmitryax force-pushed the mdatagen-with-resource branch from df46db0 to 99c03d3 Compare July 24, 2023 19:18
@dmitryax dmitryax added the Run Windows Enable running windows test on a PR label Jul 24, 2023
@dmitryax dmitryax force-pushed the mdatagen-with-resource branch 3 times, most recently from eb36415 to 0845f2d Compare July 24, 2023 23:21
Use the recently introduce ResourceBuilder in MetricsBuilder instead of generating separate logic. This consolidation will make all the future improvements to the ResourceBuilder applicable for craping receivers and resource processors. This also opens the door for getting away from the sequential ResourceMetrics building using EmitForResource towards better structured map-based approach.
@dmitryax dmitryax force-pushed the mdatagen-with-resource branch from 0845f2d to 37f15c9 Compare July 24, 2023 23:41
@dmitryax dmitryax merged commit 57417bf into open-telemetry:main Jul 25, 2023
@github-actions github-actions bot added this to the next release milestone Jul 25, 2023
@dmitryax dmitryax deleted the mdatagen-with-resource branch July 25, 2023 22:19
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