Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error decoding 'processors' #81

Open
gabrielgontariu opened this issue Apr 5, 2024 · 4 comments
Open

error decoding 'processors' #81

gabrielgontariu opened this issue Apr 5, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@gabrielgontariu
Copy link

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])

@lmangani
Copy link
Contributor

lmangani commented Apr 5, 2024

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!

@akvlad
Copy link
Collaborator

akvlad commented Apr 5, 2024

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.

@gabrielgontariu
Copy link
Author

Thanks for the messages!

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

@lmangani
Copy link
Contributor

lmangani commented Apr 5, 2024

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

@lmangani lmangani added enhancement New feature or request help wanted Extra attention is needed labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants