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
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)
}
Click to show internal directories.
Click to hide internal directories.