Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 380f407

Browse files
authored
provide accessor to the span implementation (#1240)
1 parent 0f7c5f5 commit 380f407

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

trace/trace_api.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ type Span struct {
148148
internal SpanInterface
149149
}
150150

151+
// Internal returns the underlying implementation of the Span
152+
func (s *Span) Internal() SpanInterface {
153+
return s.internal
154+
}
155+
151156
// IsRecordingEvents returns true if events are being recorded for this span.
152157
// Use this check to avoid computing expensive annotations when they will never
153158
// be used.

0 commit comments

Comments
 (0)