Commit Graph

5 Commits

Author SHA1 Message Date
Matthew Sainsbury ab63cdff96
[chore] bump otel-go deps (#12575)
#### Description
Upgrading the collector to use opentelemetry-go-contrib
v1.35.0/v0.60.0/v0.29.0/v0.15.0/v0.10.0/v0.8.0/v0.7.0

See changelog here:
https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.35.0

<!-- Issue number if applicable -->
#### Link to tracking issue
none available

<!--Describe what testing was performed and which tests were added.-->
#### Testing
I ran `make all` but happy to run other targets if needed
2025-03-06 20:20:20 +00:00
Alex Boten 782749dd31
[service] fix v0.2.0 to v0.3.0 conversion bug (#12438)
Converting headers from config schema v0.2.0 to v0.3.0 was causing a nil
dereferencing issue by incorrectly setting the name/value pair to a nil
pointer. Added a test in both the loading of the config in otelcol, as
well as the migration code unit test.

Fixes #12439

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-02-20 19:53:07 +00:00
Alex Boten f024b0d8d9
[service] fix bug in parsing `service::telemetry` configuration (#12437)
Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/12436

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2025-02-20 16:53:51 +00:00
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