open-telemetry / opentelemetry-collector-contrib

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

loadbalancing exporter seems to eat data if fed identical attributes for a datapoint + timestamp #36508

Open skandragon opened 1 day ago

skandragon commented 1 day ago

Component(s)

exporter/loadbalancing

What happened?

Description

The load balancing exporter uses a Merge helper that seems like it will destroy data when duplicate data flows through it.

Steps to Reproduce

  1. Take any metric flow, and drop a tag using any of the filtering processors.
  2. Note that now the metrics for a given timestamp have more than one entry for the same set of attributes and timestamp.
  3. Note that the routing seems to drop one of thees when merging prior to routing.

Expected Result

It should not drop data.

Actual Result

It drops data.

Collector version

v0.114.0

Environment information

go latest, any linux

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

github-actions[bot] commented 1 day ago

Pinging code owners: