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

Commit

Permalink
provide accessor to the span implementation (#1240)
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Nov 2, 2020
1 parent 0f7c5f5 commit 380f407
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trace/trace_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ type Span struct {
internal SpanInterface
}

// Internal returns the underlying implementation of the Span
func (s *Span) Internal() SpanInterface {
return s.internal
}

// IsRecordingEvents returns true if events are being recorded for this span.
// Use this check to avoid computing expensive annotations when they will never
// be used.
Expand Down

0 comments on commit 380f407

Please sign in to comment.