fix: set service.instance.id for unique instance label #144
Reference in New Issue
Block a user
Delete Branch "fix/otel-service-instance-id"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds service.instance.id (pod hostname) to OTEL_RESOURCE_ATTRIBUTES. The OTLP->Prometheus exporter maps it to the instance label on metrics and target_info, fixing (1) multi-replica series collisions and (2) the (job, instance) target_info join used by the Shiny eventsourced dashboard/alerts (currently failing with duplicate-series DatasourceError for multi-pod services). Build + race tests pass.
Coverage Report
Total coverage: 23%