Commit Graph

2 Commits

Author SHA1 Message Date
Alex Boten e69ca358a9
[service] ensure endpoint is prefixed w/ scheme (#12258)
#### Description

Users can enter the OTLP endpoint w/o a scheme in the prefix. This
causes issues with the URL parsing code in the config package.

Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/12254

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-02-03 23:17:06 +00:00
Alex Boten 4edaacddf9
update config dependency (#11611)
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:

1. update `go.opentelemetry.io/contrib/config` package 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
2. 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.

Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/12021

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-01-24 17:47:00 +00:00