2023-09-07 19:55:58 -04:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-11-01 09:08:45 -04:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2023-09-07 19:55:58 -04:00
|
|
|
|
|
|
|
package trace // import "go.opentelemetry.io/otel/trace"
|
|
|
|
|
|
|
|
// nonRecordingSpan is a minimal implementation of a Span that wraps a
|
|
|
|
// SpanContext. It performs no operations other than to return the wrapped
|
|
|
|
// SpanContext.
|
|
|
|
type nonRecordingSpan struct {
|
|
|
|
noopSpan
|
|
|
|
|
|
|
|
sc SpanContext
|
|
|
|
}
|
|
|
|
|
|
|
|
// SpanContext returns the wrapped SpanContext.
|
|
|
|
func (s nonRecordingSpan) SpanContext() SpanContext { return s.sc }
|