telemetrytest

package
v0.6.17-beta Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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