tracetesting

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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

type LookupAttributes []attribute.KeyValue

LookupAttributes allows to lookup an attribute by key. This is useful for testing purposes.

func (LookupAttributes) Get

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

Jump to

Keyboard shortcuts

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