1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-25 22:41:46 +02:00

Small fixes on some Span method's documentation headers (#1950)

This commit is contained in:
Nelson Ghezzi
2021-05-26 14:33:54 +00:00
committed by GitHub
parent 8603b9026c
commit 270cc6030a

View File

@@ -352,13 +352,13 @@ type Span interface {
IsRecording() bool IsRecording() bool
// RecordError will record err as an exception span event for this span. An // 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 // additional call to SetStatus is required if the Status of the Span should
// be set to Error, this method does not change the Span status. If this // be set to Error, as this method does not change the Span status. If this
// span is not being recorded or err is nil than this method does nothing. // span is not being recorded or err is nil then this method does nothing.
RecordError(err error, options ...EventOption) RecordError(err error, options ...EventOption)
// SpanContext returns the SpanContext of the Span. The returned // SpanContext returns the SpanContext of the Span. The returned SpanContext
// SpanContext is usable even after the End has been called for the Span. // is usable even after the End method has been called for the Span.
SpanContext() SpanContext SpanContext() SpanContext
// SetStatus sets the status of the Span in the form of a code and a // SetStatus sets the status of the Span in the form of a code and a