Also! I noticed that OpenTelemetry collector at version 32+ is no longer compatible with our metricstransform configuration, which is a bummer. (At that version our config will silently delete metrics instead of renaming them.) So, I added a test that will prevent us from deploying a version that runs into this problem.
Much of this code was copied & modified from the opentelemetry-collector base repository. Now, running
make release
will:Here is an example of the result: https://github.com/honeycombio/opentelemetry-collector-configs/releases/tag/1.1.0-prerelease-3
The compiled version of the collector comes with:
In order to accomplish this I had to some things that felt gross, in the name of dealing with conflicting versions:
replaces
directives in the otel-collector-builder configgo.mod
file, which felt wrong, but seems to work even in CI.Also! I noticed that OpenTelemetry collector at version 32+ is no longer compatible with our
metricstransform
configuration, which is a bummer. (At that version our config will silently delete metrics instead of renaming them.) So, I added a test that will prevent us from deploying a version that runs into this problem.