1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-23 22:34:47 +02:00
This commit is contained in:
thinkerou
2019-06-28 13:59:13 +08:00
committed by rghetia
parent 36f51385ff
commit 8c47aeb0af
2 changed files with 5 additions and 3 deletions

View File

@@ -23,6 +23,9 @@ import (
"github.com/open-telemetry/opentelemetry-go/api/event"
)
type noopSpan struct {
}
var _ Span = (*noopSpan)(nil)
// SpancContext returns an invalid span context.

View File

@@ -21,9 +21,6 @@ import (
"github.com/open-telemetry/opentelemetry-go/api/scope"
)
type noopSpan struct {
}
type noopTracer struct {
resources core.EventID
}
@@ -72,3 +69,5 @@ func (t *noopTracer) Start(ctx context.Context, name string, opts ...SpanOption)
// Inject does nothing.
func (t *noopTracer) Inject(ctx context.Context, span Span, injector Injector) {
}
var _ Injector = (*noopTracer)(nil)