Documentation

Overview

Package tracetest contains tracing system implementation useful in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable()

Enable installs tracetest fake tracing system globally in the process.

func WithSpanContext

func WithSpanContext(ctx context.Context, spanCtx string) context.Context

WithSpanContext overrides the span context string in the context.

The following property holds:

trace.SpanContext(tracetest.WithSpanContext(ctx, "abc")) == "abc".

Types

This section is empty.

Source Files