Categorygo.opentelemetry.io/otel/oteltest
modulepackage
1.0.0-RC3
Repository: https://github.com/open-telemetry/opentelemetry-go.git
Documentation: pkg.go.dev

# Functions

DefaultTracer returns a default tracer for testing purposes.
NewHarness returns an instantiated *Harness using t.
NewTextMapCarrier returns a new *TextMapCarrier populated with data.
NewTextMapPropagator returns a new TextMapPropagator for testing.
NewTracerProvider returns a *TracerProvider configured with options.
TraceStateFromKeyValues is a convenience function to create a trace.TraceState from provided key/value pairs.
WithSpanContextFunc sets the SpanContextFunc used to generate a new Spans context from a parent SpanContext.
WithSpanRecorder sets the SpanRecorder to use with the TracerProvider for testing.

# Structs

Event encapsulates the properties of calls to AddEvent.
Span is an OpenTelemetry Span used for testing.
SpanRecorder performs operations to record a span as it starts and ends.
TextMapCarrier provides a testing storage medium to for a TextMapPropagator.
TextMapPropagator is a propagation.TextMapPropagator used for testing.
Tracer is an OpenTelemetry Tracer implementation used for testing.
TracerProvider is a testing TracerProvider.

# Interfaces

Option applies an option to a config.

# Type aliases

Harness is a testing harness used to test implementations of the OpenTelemetry API.