This commit is contained in:
thinkerou
2019-06-27 22:59:13 -07:00
committed by rghetia
parent 36f51385ff
commit 8c47aeb0af
2 changed files with 5 additions and 3 deletions
+3
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.
+2 -3
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)