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