Skip to content

Commit

Permalink
Update generated config types (#6347)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
evan-bradley authored Nov 20, 2024
1 parent 3704ded commit df35547
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Fixed

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

<!-- Released section -->
<!-- Don't change this section unless doing release -->
Expand Down
22 changes: 11 additions & 11 deletions config/generated_config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit df35547

Please sign in to comment.