Skip to content

Commit

Permalink
Use better naming
Browse files Browse the repository at this point in the history
Signed-off-by: Emmanuel Emonueje Ebenezer <eebenezer949@gmail.com>
  • Loading branch information
ekefan committed Jan 1, 2025
1 parent 93c3c60 commit 03b059d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/jaeger/internal/integration/trace_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ func TestWriteTracesInChunks(t *testing.T) {
assert.Equal(t, 1, chunks[2].ResourceSpans().Len()) // Third chunk has one span from one resource

// First chunk: NoServiceName1 span1 and 2
firstChunkResource1 := chunks[0].ResourceSpans().At(0)
assert.Equal(t, "NoServiceName1", firstChunkResource1.Resource().Attributes().AsRaw()["service.name"])
firstChunkScope1 := firstChunkResource1.ScopeSpans().At(0)
assert.Equal(t, "span1", firstChunkScope1.Spans().At(0).Name())
assert.Equal(t, "span2", firstChunkScope1.Spans().At(1).Name())
firstChunkResource := chunks[0].ResourceSpans().At(0)
assert.Equal(t, "NoServiceName1", firstChunkResource.Resource().Attributes().AsRaw()["service.name"])
firstChunkScope := firstChunkResource.ScopeSpans().At(0)
assert.Equal(t, "span1", firstChunkScope.Spans().At(0).Name())
assert.Equal(t, "span2", firstChunkScope.Spans().At(1).Name())

// Second chunk: NoServiceName2 span3 and 4
secondChunkResource := chunks[1].ResourceSpans().At(0)
Expand Down

0 comments on commit 03b059d

Please sign in to comment.