tracing

package
v0.0.0-...-2215086 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTracing

func SetupTracing(config jaeger.Config, errorHandler emperror.ErrorHandler)

Types

type CiSpan

type CiSpan struct {
	*trace.Span
}

type Tracer

type Tracer interface {
	// StartSpan starts a span with the given name and context
	StartSpan(ctx context.Context, name string) (context.Context, *CiSpan)

	// StartWithTags starts a new span and adds the tags to it as attributes
	StartWithTags(ctx context.Context, name string, tags map[string]interface{}) (context.Context, *CiSpan)

	// StartAndLink starts a new root span and links it with the span from the passed in context
	StartAndLink(parentCtx context.Context, name string) (context.Context, *CiSpan)

	// EndSpan ends a span in the given context
	EndSpan(ctx context.Context)

	EndSpanInstance(span *CiSpan)
}

Tracer represents the application specific view of tracing It's meant to collect all tracing related operations

func NewNoOpTracer

func NewNoOpTracer() Tracer

func NewTracer

func NewTracer() Tracer

Jump to

Keyboard shortcuts

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