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

Update generated config types #6347

Merged
merged 5 commits into from
Nov 20, 2024

Conversation

evan-bradley
Copy link
Contributor

This updates the generated config types to be created with go-jsonschema v0.17.0, which includes an update to add a struct tag the AdditionalProperties field that allows it to be marshaled.

Making this change fixes the following error that occurs when I marshal a basic otelcol.Config struct, then run it with the Collector:

'metrics.readers[0].pull.exporter' has invalid keys: additionalproperties

Related to open-telemetry/opentelemetry-collector#11711.

cc @codeboten

This uses go-jsonschema v0.17.0, which includes an update to add a struct tag the `AdditionalProperties` field to ensure it can be marshaled.
@evan-bradley evan-bradley requested review from pellared and a team as code owners November 19, 2024 20:18
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.9%. Comparing base (3704ded) to head (9c6dc4f).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #6347   +/-   ##
=====================================
  Coverage   66.9%   66.9%           
=====================================
  Files        193     193           
  Lines      15652   15652           
=====================================
+ Hits       10479   10482    +3     
+ Misses      4882    4880    -2     
+ Partials     291     290    -1     

see 1 file with indirect coverage changes

---- 🚨 Try these New Features:

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

thanks @evan-bradley!

@pellared pellared merged commit df35547 into open-telemetry:main Nov 20, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants