Module trace_utils Copy item path Source NoopTracer ๐ A no-op tracer that does not modify or instrument any futures or closures.
This is used as a fallback if no custom tracer is set. JoinSetTracerError A custom error type for tracer injection failures. GLOBAL_TRACER ๐ Global storage for an injected tracer. If no tracer is injected, a no-op
tracer is used instead. This ensures that calls to trace_future or
trace_block never panic due to missing instrumentation. NOOP_TRACER ๐ A no-op tracer singleton that is returned by get_tracer if no custom
tracer has been registered. JoinSetTracer A trait for injecting instrumentation into either asynchronous futures or
blocking closures at runtime. get_tracer ๐ Return the currently registered tracer, or the no-op tracer if none was
registered. set_join_set_tracer Set the custom tracer for both futures and blocking closures. trace_block Optionally instruments a blocking closure with custom tracing. trace_future Optionally instruments a future with custom tracing.