This commit updates to images v0.117.0 so that the cross-distro.sh test works again (images removed fedora-39.json in main but the uses the previous version of images that includes fedora-39 so there is a mismatch (we should look into if there is a way to get github.com/osbuild/images@latest instead of main in the cross-arch test). It also updates all the vendor stuff that got pulled via the new images release (which is giantonormous). This update requires updating the Go version to 1.22.8
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() {}
|