Skip to content

Commit

Permalink
Update instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace…
Browse files Browse the repository at this point in the history
…_test.go

Co-authored-by: Tyler Yahn <[email protected]>
  • Loading branch information
flc1125 and MrAlias authored Nov 26, 2024
1 parent 3ab2b2c commit a690136
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func TestError(t *testing.T) {

// verify the error events
events := span.Events()
assert.Len(t, events, 2)
require.Len(t, events, 2)
assert.Equal(t, "exception", events[0].Name)
assert.Contains(t, events[0].Attributes, attribute.String("exception.type", "*errors.errorString"))
assert.Contains(t, events[0].Attributes, attribute.String("exception.message", "oh no one"))
Expand Down

0 comments on commit a690136

Please sign in to comment.