trace

package
v1.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoOpTracerWithLogger

type NoOpTracerWithLogger struct {
	Logger *zap.Logger
}

NoOpTracerWithLogger is a tab.Tracer implementation that doesn't support any tracing capabilities, but provides access to a Logger through a Spanner.

func NewNoOpTracerWithLogger

func NewNoOpTracerWithLogger(l *zap.SugaredLogger) *NoOpTracerWithLogger

NewNoOpTracerWithLogger returns a NoOpTracerWithLogger initialized with the given logger.

func (*NoOpTracerWithLogger) FromContext

FromContext implements tab.Tracer.

func (*NoOpTracerWithLogger) NewContext

func (t *NoOpTracerWithLogger) NewContext(parent context.Context, _ tab.Spanner) context.Context

NewContext implements tab.Tracer.

func (*NoOpTracerWithLogger) StartSpan

func (t *NoOpTracerWithLogger) StartSpan(ctx context.Context, operationName string, opts ...interface{}) (context.Context, tab.Spanner)

StartSpan implements tab.Tracer.

func (*NoOpTracerWithLogger) StartSpanWithRemoteParent

func (t *NoOpTracerWithLogger) StartSpanWithRemoteParent(ctx context.Context, operationName string, carrier tab.Carrier, opts ...interface{}) (context.Context, tab.Spanner)

StartSpanWithRemoteParent implements tab.Tracer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL