Skip to content

Commit

Permalink
Test the SDK's Span.SpanContext method (#1114)
Browse files Browse the repository at this point in the history
* Test the SDK's Span.SpanContext method

Part of #954

* Fix merge
  • Loading branch information
MrAlias authored Sep 25, 2024
1 parent bd728ab commit b7748a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdk/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ func TestSpanIsRecording(t *testing.T) {
assert.False(t, s.IsRecording(), "unsampled span should not be recorded")
}

func TestSpanSpanContext(t *testing.T) {
s := spanBuilder{SpanContext: spanContext0}.Build()
assert.Equal(t, spanContext0, s.SpanContext())
}

func TestSpanSetStatus(t *testing.T) {
s := spanBuilder{}.Build()

Expand Down

0 comments on commit b7748a4

Please sign in to comment.