Skip to content

Commit

Permalink
Small fixes on some Span method's documentation headers (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonghezzi authored May 26, 2021
1 parent 8603b90 commit 270cc60
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions trace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,13 @@ type Span interface {
IsRecording() bool

// RecordError will record err as an exception span event for this span. An
// additional call toSetStatus is required if the Status of the Span should
// be set to Error, this method does not change the Span status. If this
// span is not being recorded or err is nil than this method does nothing.
// additional call to SetStatus is required if the Status of the Span should
// be set to Error, as this method does not change the Span status. If this
// span is not being recorded or err is nil then this method does nothing.
RecordError(err error, options ...EventOption)

// SpanContext returns the SpanContext of the Span. The returned
// SpanContext is usable even after the End has been called for the Span.
// SpanContext returns the SpanContext of the Span. The returned SpanContext
// is usable even after the End method has been called for the Span.
SpanContext() SpanContext

// SetStatus sets the status of the Span in the form of a code and a
Expand Down

0 comments on commit 270cc60

Please sign in to comment.