tracer

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, name string, oo ...Option) error

func Shutdown

func Shutdown(ctx context.Context) error

func TraceToContext

func TraceToContext(ctx context.Context, headerTraceId string) (context.Context, error)

Types

type CollectorHost

type CollectorHost string

type CollectorPort

type CollectorPort uint16

type Noop

type Noop bool

type Option

type Option interface {
	// contains filtered or unexported methods
}

type Options

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

func BuildOptions

func BuildOptions(opts []Option) Options

func (Options) GetTarget

func (o Options) GetTarget() string

func (Options) IsNoop

func (o Options) IsNoop() bool

type Span

type Span interface {
	Tag(key string, value interface{})
	HasSpanId() bool
	SpanId() string
	HasTraceId() bool
	TraceId() string
	End()
}

func SpanFromContext

func SpanFromContext(ctx context.Context) Span

func StartSpan

func StartSpan(ctx context.Context, name string) (context.Context, Span)

Jump to

Keyboard shortcuts

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