You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-23 22:34:47 +02:00
update (#31)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user