opentelemetry-go-contrib icon indicating copy to clipboard operation
opentelemetry-go-contrib copied to clipboard

config: Top-level functions

Open pellared opened this issue 10 months ago • 2 comments

Currently there are two config packages:

  • go.opentelemetry.io/contrib/config/v0.2.0
  • go.opentelemetry.io/contrib/config/v0.3.0

The user should be able to have functions like LoadYAML in go.opentelemetry.io/contrib/config which gives the possibility to setup the OTel Go SDK without knowing what is the exactly file-version in the OTel config file.

Maybe go.opentelemetry.io/contrib/config/v[X.Y.Z] should be even internal?

Related to:

  • https://github.com/open-telemetry/opentelemetry-go-contrib/pull/6412

pellared avatar Jan 13 '25 08:01 pellared

Or maybe we should just support the latest version? Alternativly we could leave as it is until v1.0 of file-version.

pellared avatar Jan 13 '25 12:01 pellared

I think the original motivation was to help in migration when there are breaking changes: https://github.com/open-telemetry/opentelemetry-go-contrib/pull/6412

I'm not sure we can accomplish that without these separate packages.

It might also not make sense to merge after 1.0 if the config stability guarantees do not guarantee the rendered config's stability: https://github.com/open-telemetry/opentelemetry-configuration/issues/89

MrAlias avatar Jan 13 '25 16:01 MrAlias