otel-collector icon indicating copy to clipboard operation
otel-collector copied to clipboard

error decoding 'processors'

Open gabrielgontariu opened this issue 10 months ago • 4 comments

Hello!

Seems to me that some dependencies got update and how I don't quite get how to write a working config file for the collector

Can you please provide an example?

journalctl -u otel-collector -f Apr 05 08:14:41 ip-10-151-1-19 otel-collector[7618]: * error decoding 'processors': unknown type: "spanmetrics" for id: "spanmetrics" (valid values: [filter groupbytrace redaction routing tail_sampling batch deltatorate memory_limiter span groupbyattrs k8sattributes experimental_metricsgeneration metricstransform resource schema transform attributes logstransform probabilistic_sampler resourcedetection cumulativetodelta]) Apr 05 08:14:41 ip-10-151-1-19 otel-collector[7618]: 2024/04/05 08:14:41 application run finished with error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding: Apr 05 08:14:41 ip-10-151-1-19 otel-collector[7618]: * error decoding 'processors': unknown type: "spanmetrics" for id: "spanmetrics" (valid values: [filter groupbytrace redaction routing tail_sampling batch deltatorate memory_limiter span groupbyattrs k8sattributes experimental_metricsgeneration metricstransform resource schema transform attributes logstransform probabilistic_sampler resourcedetection cumulativetodelta])

gabrielgontariu avatar Apr 05 '24 15:04 gabrielgontariu

Could you share an anonymized version of your config to understand what's there? Or if you're using one of our examples, please confirm which. Thanks!

lmangani avatar Apr 05 '24 15:04 lmangani

According to the readme https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.95.0/processor/spanmetricsprocessor

Note: The spanmetrics processor is deprecated in favour of the spanmetrics connector.

So yeah. It disappeared after the major upgrade, please use the spanmetrics connector instead.

akvlad avatar Apr 05 '24 15:04 akvlad

Thanks for the messages!

Ok! I will try updating next week and get back with the results

gabrielgontariu avatar Apr 05 '24 15:04 gabrielgontariu

We need to update our examples accordingly. This is the new connector example

lmangani avatar Apr 05 '24 16:04 lmangani