diff --git a/exporters/otlp/otlp_test.go b/exporters/otlp/otlp_test.go index d83b1d0f16b9..6278d8004c7d 100644 --- a/exporters/otlp/otlp_test.go +++ b/exporters/otlp/otlp_test.go @@ -134,6 +134,12 @@ func newExporterEndToEndTest(t *testing.T, additionalOpts []otlp.ExporterOption) if got, want := len(attrMap), m; got != want { t.Fatalf("span attribute unique values: got %d want %d", got, want) } + for i := 0; i < m; i++ { + _, ok := attrMap[int64(i)] + if !ok { + t.Fatalf("span with attribute %d missing", i) + } + } } }