mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-25 15:50:20 +00:00
40ad4163cb
Bumps the github-dependencies group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) and [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang). Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.30.7 to 1.31.1 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.31.1/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/mgn/v1.30.7...service/s3/v1.31.1) Updates `github.com/prometheus/client_golang` from 1.20.3 to 1.20.4 - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.20.3...v1.20.4) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/sts dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
33 lines
901 B
Go
33 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() {}
|