Skip to main content

set_forwarder

Function set_forwarder 

Source
pub fn set_forwarder(
    forwarder: DetlogForwarder,
    policy: ForwardPolicy,
) -> Result<(), (DetlogForwarder, ForwardPolicy)>
Expand description

Installs a process-local sink for deterministic INFO records.

Backends whose tool runs in another process can use this to transport the same records that are normally observed through the coordinator’s tracing subscriber. policy is the coordinator’s per-target answer; records from other modules are not forwarded. Only the first sink installed in a process is retained.