Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.27.35 to 1.27.39. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.27.35...config/v1.27.39) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/config dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
32 lines
901 B
Go
32 lines
901 B
Go
package tracing
|
|
|
|
import "context"
|
|
|
|
// NopTracerProvider is a no-op tracing implementation.
|
|
type NopTracerProvider struct{}
|
|
|
|
var _ TracerProvider = (*NopTracerProvider)(nil)
|
|
|
|
// Tracer returns a tracer which creates no-op spans.
|
|
func (NopTracerProvider) Tracer(string, ...TracerOption) Tracer {
|
|
return nopTracer{}
|
|
}
|
|
|
|
type nopTracer struct{}
|
|
|
|
var _ Tracer = (*nopTracer)(nil)
|
|
|
|
func (nopTracer) StartSpan(ctx context.Context, name string, opts ...SpanOption) (context.Context, Span) {
|
|
return ctx, nopSpan{}
|
|
}
|
|
|
|
type nopSpan struct{}
|
|
|
|
var _ Span = (*nopSpan)(nil)
|
|
|
|
func (nopSpan) Name() string { return "" }
|
|
func (nopSpan) Context() SpanContext { return SpanContext{} }
|
|
func (nopSpan) AddEvent(string, ...EventOption) {}
|
|
func (nopSpan) SetProperty(any, any) {}
|
|
func (nopSpan) SetStatus(SpanStatus) {}
|
|
func (nopSpan) End() {}
|