set_exporter

Function set_exporter 

pub fn set_exporter(
    process_id: ProcessId,
    exporter: &'static (dyn Export + Sync),
) -> Result<(), SetExporterError>
Expand description

Initializes the collector with the given Exporter and ProcessId.

A ProcessId should never be re-used as it’s used to collect metadata about the execution and to generate SpanContexts which need to be globally unique.