Skip to content

Commit

Permalink
add verification for attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rghetia committed Mar 13, 2020
1 parent 5c27607 commit 1ee66fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exporters/otlp/otlp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}

Expand Down

0 comments on commit 1ee66fa

Please sign in to comment.