tracetest

package
v0.0.0-...-ddee7fb Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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