Documentation
¶
Overview ¶
Package telemetrytest holds test helpers for fabriq's tracing: a span recorder installed as the global tracer provider, and a scan that proves a value never reached a span.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertNoValue ¶
func AssertNoValue(t testing.TB, rec *tracetest.SpanRecorder, value string)
AssertNoValue fails the test if value appears in any ended span's name, attributes, events, event attributes, links or status description.
func Attr ¶
func Attr(s sdktrace.ReadOnlySpan, key string) (string, bool)
Attr returns the string form of a span attribute and whether it is set.
func Named ¶
func Named(rec *tracetest.SpanRecorder, name string) []sdktrace.ReadOnlySpan
Named returns the ended spans called name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.