tracing

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

func NewTracer

func NewTracer(cfg *TracerConfig) *Tracer

basic tracer implementation of trace.Tracer, just adding some extra configuration

func (*Tracer) Start

func (t *Tracer) Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

type TracerConfig

type TracerConfig struct {
	ServiceName string
	Endpoint    string
	Logger      logging.LoggerInterface
}

func NewTracerConfig

func NewTracerConfig(serviceName, endpoint string, logger logging.LoggerInterface) *TracerConfig

Jump to

Keyboard shortcuts

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