tracing

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTraceSpan

func GetTraceSpan(ctx context.Context, spanName string) (context.Context, trace.Span)

func RecordErrorSpan

func RecordErrorSpan(span trace.Span, err error)

Types

type ExporterType

type ExporterType string
const (
	ConsoleExporter ExporterType = "console"
	JaegerExporter  ExporterType = "jaeger"
	ZipkinExporter  ExporterType = "zipkin"
	OltpExporter    ExporterType = "oltp"
)

type TracerController

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

func NewTracer

func NewTracer(version string, exporterType string) (*TracerController, error)

func (TracerController) Shutdown

func (p TracerController) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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