Documentation
¶
Overview ¶
Package telemetrytest provides tracing fixtures and assertions for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertToolTracePrivacy ¶
func AssertToolTracePrivacy(t *testing.T, spans []sdktrace.ReadOnlySpan, toolName, input, output string, capture bool)
AssertToolTracePrivacy checks that lifecycle events stay metadata-only and tool attributes contain input and output only when content capture is enabled.
func NewRecorder ¶
func NewRecorder(t *testing.T, captureContent bool) (*tracetest.SpanRecorder, *sdktrace.TracerProvider)
NewRecorder installs an in-memory provider and content policy without an exporter. It restores all tracing globals at cleanup; callers must not run in parallel.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.