testutil

package
v0.0.0-...-4086bda Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAttributes

func AssertAttributes(t *testing.T, got []attribute.KeyValue, want map[string]any)

func AssertSpan

func AssertSpan(t *testing.T, span *tracetest.SpanStub, name string, attributes map[string]any)

AssertSpan is used to test whether a span contains the expected attributes.

func GetTracer

func GetTracer() (trace.Tracer, *tracetest.InMemoryExporter)

GetTracer is used in tests to get a trace.Tracer implementation that captures the spans generated during a test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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