Skip to content

Upgrade otel-collector and replace removed logging exporter#229

Merged
bloodearnest merged 7 commits intomainfrom
upgrade-otel-collector
Mar 3, 2026
Merged

Upgrade otel-collector and replace removed logging exporter#229
bloodearnest merged 7 commits intomainfrom
upgrade-otel-collector

Conversation

@rebkwok
Copy link
Contributor

@rebkwok rebkwok commented Feb 24, 2026

Closes #132

The logging exporter was removed in v0.111.0
open-telemetry/opentelemetry-collector#11337

The replacement debug exporter uses a verbosity level instead (detailed/normal/basic).

I also tried to ugrade the version of the opentelemetry-collector-contrib image used in the mock-honeycomb test endpoint (in order to replace the logging exporter with the debug exporter in the test mock config too), but the furthest I could upgrade was to 0.69.0. With 0.70.0+ the tests get a connection error.

@rebkwok rebkwok force-pushed the upgrade-otel-collector branch from 60c1191 to 85bf6c5 Compare February 24, 2026 11:46
rebkwok and others added 6 commits February 27, 2026 10:29
Only bumps to v0.69.0; 0.70.0+ results in a connection error
This required a number of small changes due to differences in the big
version bump

1) add check have to wait for the collector to come up before starting
   tests. This involved exposing the default healthcheck url, but a)
   it's not exposed externally (different port), and b) we can use that
   in dokkku deploys (later commit)

2) The fileexporter now buffers writes, and flushes to disk after 1s by
   default. The tests need changing to wait for the file to be written.
   Added a more explicit file related error message to for future us.

3) The json fileformat is NDJSON, but we were not properly handling
   that, so we now do.

4) Update to lateset config; switch logging to debug, and bind to
   0.0.0.0 explicitly, as the default changed to 127.0.0.1
This removes some manual process management from the justfile

Also allowed us to easy re-use the base image, so that the
mock-honeycomb and otel-gateway services will always use the same
version of otel-collector
Since we added healthcheck url, we might was well use it.
@bloodearnest bloodearnest force-pushed the upgrade-otel-collector branch from eff8198 to bd2cf77 Compare February 27, 2026 10:29
@bloodearnest bloodearnest force-pushed the upgrade-otel-collector branch from 0f1cb99 to 592320e Compare March 3, 2026 10:29
@bloodearnest bloodearnest force-pushed the upgrade-otel-collector branch from 592320e to 1e07899 Compare March 3, 2026 10:50
@bloodearnest bloodearnest merged commit 91afb9a into main Mar 3, 2026
5 of 6 checks passed
@bloodearnest bloodearnest deleted the upgrade-otel-collector branch March 3, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removed deprecated loglevel in otel-collector config

2 participants