trace

package
v0.0.0-...-9b4e594 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSpanError

func AddSpanError(span trace.Span, err error)

func AddSpanEvents

func AddSpanEvents(span trace.Span, name string, events map[string]string)

func AddSpanTags

func AddSpanTags(span trace.Span, tags map[string]string)

func FailSpan

func FailSpan(span trace.Span, message string)

func NewSpan

func NewSpan(ctx context.Context, name string) (context.Context, trace.Span)

func SpanFromContext

func SpanFromContext(ctx context.Context) trace.Span

Types

type Provider

type Provider struct {
	Provider trace.TracerProvider
}

func NewProvider

func NewProvider(config ProviderConfig) (Provider, error)

func (*Provider) Close

func (p *Provider) Close(ctx context.Context) error

type ProviderConfig

type ProviderConfig struct {
	JaegerEndpoint string
	ServiceName    string
	ServiceVersion string
	Environment    string
	Disabled       bool
}

Jump to

Keyboard shortcuts

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