MCPcopy Create free account
hub / github.com/apache/datafusion / set_join_set_tracer

Function set_join_set_tracer

datafusion/common-runtime/src/trace_utils.rs:110–116  ·  view source on GitHub ↗

Set the custom tracer for both futures and blocking closures. This should be called once at startup. If called more than once, an `Err(JoinSetTracerError)` is returned. If not called at all, a no-op tracer that does nothing is used.

(
    tracer: &'static dyn JoinSetTracer,
)

Source from the content-addressed store, hash-verified

108/// `Err(JoinSetTracerError)` is returned. If not called at all, a no-op tracer that does nothing
109/// is used.
110pub fn set_join_set_tracer(
111 tracer: &'static dyn JoinSetTracer,
112) -> Result<(), JoinSetTracerError> {
113 GLOBAL_TRACER
114 .set(tracer)
115 .map_err(|_set_err| JoinSetTracerError::AlreadySet)
116}
117
118/// Optionally instruments a future with custom tracing.
119///

Callers 2

tracingFunction · 0.85
init_asserting_tracerFunction · 0.85

Calls 1

setMethod · 0.45

Tested by 1

init_asserting_tracerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…