Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracer ¶
func InitTracer() (apitrace.Tracer, func() []sdktrace.ReadOnlySpan)
InitTracer initializes the tracer and returns a flusher of the reported spans for further inspection. Its main purpose is to declare a tracer for TESTING.
Types ¶
type LookupAttributes ¶
LookupAttributes allows to lookup an attribute by key. This is useful for testing purposes.
func (LookupAttributes) Get ¶
func (a LookupAttributes) Get(key string) attribute.Value
Get returns the value of an attribute by key or returns an empty one if it can't find it.
func (LookupAttributes) Has ¶
func (a LookupAttributes) Has(key string) bool
Has returns true if it can find the attribute by key otherwise false
type Recorder ¶ added in v0.5.0
type Recorder struct {
// contains filtered or unexported fields
}
Recorder records spans being synced through the SpanSyncer interface.
func NewRecorder ¶ added in v0.5.0
func NewRecorder() *Recorder
func (*Recorder) ExportSpans ¶ added in v0.5.0
ExportSpans records spans into the internal buffer
func (*Recorder) Flush ¶ added in v0.5.0
func (r *Recorder) Flush() []trace.ReadOnlySpan
Flush returns the current recorded spans and reset the recordings
Click to show internal directories.
Click to hide internal directories.