From 0edfbbd08b52a7b8bd4c0c3346d2f50b71d86f82 Mon Sep 17 00:00:00 2001 From: Joshua MacDonald Date: Tue, 29 Nov 2022 10:40:25 -0800 Subject: [PATCH] fix for attributesEqual() following otel-go slice-valued attribute representation change, see https://github.com/open-telemetry/opentelemetry-go/issues/3108 --- lightstep/sdk/metric/internal/syncstate/sync.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lightstep/sdk/metric/internal/syncstate/sync.go b/lightstep/sdk/metric/internal/syncstate/sync.go index 464da723..c5f0233b 100644 --- a/lightstep/sdk/metric/internal/syncstate/sync.go +++ b/lightstep/sdk/metric/internal/syncstate/sync.go @@ -301,6 +301,9 @@ func attributesEqual(a, b []attribute.KeyValue) bool { return false } for i := range a { + if a[i].Value.Type() != b[i].Value.Type() { + return false + } if a[i].Key != b[i].Key { return false }