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.
Click to show internal directories.
Click to hide internal directories.