In order to get around https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/10374 we use this processor to copy the resource attributes to attributes instead of setting resource_to_telemetry_conversion enabled prometheus exporter config. This processor avoids copying the job if service.name exists and instance if service.instance.id exists.
Testing
Unit tests and tested locally e2e.
Checklist:
[✅ ] My changes generate no new warnings
[✅ ] I have added tests that prove my fix is effective or that my feature works
[✅ ] Any dependent changes have been merged and published in downstream modules
Description
In order to get around https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/10374 we use this processor to copy the resource attributes to attributes instead of setting resource_to_telemetry_conversion enabled prometheus exporter config. This processor avoids copying the
job
ifservice.name
exists andinstance
ifservice.instance.id
exists.Testing
Unit tests and tested locally e2e.
Checklist:
Documentation
Added a README for the processor.