tracing

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider added in v0.3.0

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

func Get

func Get(sp view.ServiceProvider) *Provider

func NewProvider added in v0.3.0

func NewProvider(tracer Tracer) *Provider

func (*Provider) GetTracer added in v0.3.0

func (m *Provider) GetTracer() Tracer

type Tracer added in v0.3.0

type Tracer interface {
	// Start creates a span starting now
	Start(spanName string)
	// StartAt creates a span starting from a given time
	StartAt(spanName string, when time.Time)
	// AddEvent adds an event to an existing span with the provided name.
	AddEvent(spanName string, eventName string)
	// AddEventAt adds an event to an existing span with the provided name and timestamp
	AddEventAt(spanName string, eventName string, when time.Time)
	// AddError adds an error to an existing span
	AddError(spanName string, err error)
	// End completes an existing span.
	End(spanName string, attrs ...string)
	// EndAt completes an existing span with a given timestamp.
	EndAt(spanName string, when time.Time, attrs ...string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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