trace

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Jaeger = "jaeger"
	Zipkin = "zipkin"
)

Variables

View Source
var (
	ErrUnknownExporter = errors.New("unknown exporter error")

	// GetTracerProvider is alis of otel.GetTracerProvider
	GetTracerProvider = otel.GetTracerProvider
)

Functions

func Start added in v0.0.4

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

Start creates a span and a context.Context containing the newly-created span.

func StartAgent

func StartAgent(c *config.Trace)

StartAgent starts a opentelemetry agent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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