package tracestest

Import Path
	go.pact.im/x/traces/tracestest (on go.dev)

Dependency Relation
	imports 4 packages, and imported by 0 packages

Involved Source Files Package tracestest provides an in-memory [traces.Handler] and assertion helpers for tests.
Package-Level Type Names (total 2, in which 1 is exported)
/* sort exporteds by: | */
Recorder is an in-memory [traces.Handler] that records finished spans for inspection in tests. It is safe for concurrent use. Find returns the first recorded span with the given name. Handle implements the [traces.Handler] interface. Records returns a copy of all recorded spans in end order. Reset clears all recorded spans. *Recorder : go.pact.im/x/traces.Handler
Package-Level Functions (total 2, both are exported)
Attr returns the encoded Go value of the attribute with the given key on rec (string, bool, int64, float64, []byte, []any, or map[string]any).
IsChild reports whether child is a direct child of parent within the same trace.