tracing

package
v0.0.0-...-46878c2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalTraceProvider

func GetGlobalTraceProvider() trace.TracerProvider

func NewSpanName

func NewSpanName(pkg string, method string) string

func RecordError

func RecordError(span trace.Span, err error)

RecordError sets the status of the span to error if the error is not nil.

func Start

func Start(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

Types

type Closer

type Closer func() error

Coser is a function that closes the global tracer.

func Init

func Init(ctx context.Context, config Config) (Closer, error)

type Config

type Config struct {
	Dataset     string
	Application string
	Version     string
	AxiomToken  string
}

Jump to

Keyboard shortcuts

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