open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.13k stars 2.39k forks source link

Schema Processor - ensure unique Resources #35305

Open ankitpatel96 opened 2 months ago

ankitpatel96 commented 2 months ago

Component(s)

processor/schema

Is your feature request related to a problem? Please describe.

The Schema Processor doesn't yet ensure Resources are unique when processing resource and all rename_attributes.

Describe the solution you'd like

Ensure that each ResourceLogs has a unique Resource within a plog.Logs object (along with all other signal types)

Describe alternatives you've considered

No response

Additional context

Pointed out by @jsuereth in https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/35248#issuecomment-2360945061

github-actions[bot] commented 2 months ago

Pinging code owners: