internal

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalTracer

func GetGlobalTracer[T tracerLike]() T

GetGlobalTracer returns the current global tracer. It is the responsability of the caller to ensure that calling code uses `tracer.Tracer` as generic type.

func SetGlobalTracer

func SetGlobalTracer[T tracerLike](t T)

SetGlobalTracer sets the global tracer to t. It is the responsibility of the caller to ensure that the value is `tracer.Tracer`.

func StoreGlobalTracer added in v2.1.0

func StoreGlobalTracer[M mockTracerLike, T tracerLike](m M)

StoreGlobalTracer is a helper function to set the global tracer internally without stopping the old one. WARNING: this is used by the civisibilitymocktracer working as a wrapper around the global tracer, hence we don't stop the tracer. DO NOT USE THIS FUNCTION ON NORMAL tracer.Tracer.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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