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

[chore] [cmd/mdatagen] Separate configuration generation #21516

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented May 5, 2023

  • Render the configuration structs in a separate file
  • Add config tests
  • Allow setting resource_attributes group in metadata.yaml which will result in the generation of the config structs related to resource attributes. The generated config can be used in non-scraping components like resourcedetection processor as proposed in [processor/resourcedetection] Proposal: default/optional resource attributes per detector #21482
  • Remove redundant NewMetricsBuilderConfig func
  • Don't include resource_attributes config option in user interface if there are no resource attributes defined

@github-actions github-actions bot requested a review from StefanKurek May 5, 2023 21:46
@dmitryax dmitryax force-pushed the mdatagen-make-resource-attributes-configurable branch 2 times, most recently from bf64f3c to 6ffad79 Compare May 5, 2023 22:44
- Render the configuration separately
- Add config tests 
- Allow setting `resource_attributes` group in metadata.yaml which will result in generation of the config related to resource attributes.
- Remove redundant NewMetricsBuilderConfig func
- Don't include resource_attributes config option in user interface if there are no resource attributes defined
@dmitryax dmitryax force-pushed the mdatagen-make-resource-attributes-configurable branch from 6ffad79 to 86395fb Compare May 6, 2023 00:51
@dmitryax
Copy link
Member Author

dmitryax commented May 6, 2023

I'm going to split PR. Turning into a draft for now

@dmitryax dmitryax marked this pull request as draft May 6, 2023 00:55
@dmitryax dmitryax closed this May 8, 2023
@dmitryax dmitryax deleted the mdatagen-make-resource-attributes-configurable branch May 10, 2023 20:39
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.

None yet

2 participants