hypertrace / hypertrace-collector

OpenTelemetry collector distribution for Hypertrace platform
6 stars 5 forks source link

feat: add processor to copy over metrics resource attributes to metric datapoint attributes #78

Closed tim-mwangi closed 2 years ago

tim-mwangi commented 2 years ago

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 if service.name exists and instance if service.instance.id exists.

Testing

Unit tests and tested locally e2e.

Checklist:

Documentation

Added a README for the processor.