Skip to content

Commit df35547

Browse files
authored
Update generated config types (#6347)
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.
1 parent 3704ded commit df35547

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1616
### Fixed
1717

1818
- Fixed the value for configuring the OTLP exporter to use `grpc` instead of `grpc/protobuf` in `go.opentelemetry.io/contrib/config`. (#6338)
19+
- Allow marshaling types in `go.opentelemetry.io/contrib/config`. (#6347)
1920

2021
<!-- Released section -->
2122
<!-- Don't change this section unless doing release -->

config/generated_config.go

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)