opentelemetry-collector
opentelemetry-collector copied to clipboard
update config dependency
This PR does a couple of things that I couldn't quite split up so I put together a PR w/ individual commits to help reviewers get through it. This PR does the following:
- update
go.opentelemetry.io/contrib/configpackage to latest. this brings in breaking changes. in order to prevent those breaking changes from impacting end users, i've also added a layer of config unmarshaling - updates the collector to instantiate the meter provider (and exporters) via the config package. this allows us to remove all the code in
otelinit. the reason for including this change was that unmarshaling the config was causing circular dependencies i didn't want to address by moving code that could be deleted around.
Replacement for https://github.com/open-telemetry/opentelemetry-collector/pull/11458.