pub fn init_propagator() -> Result<(), TraceError>
Expand description

Configure the global propagator based on content of the env variable OTEL_PROPAGATORS Specifies Propagators to be used in a comma-separated list. Default value: "tracecontext,baggage" Example: export OTEL_PROPAGATORS="b3" Accepted values for OTEL_PROPAGATORS are:

  • “tracecontext”: W3C Trace Context
  • “baggage”: W3C Baggage
  • “b3”: B3 Single (require feature “zipkin”)
  • “b3multi”: B3 Multi (require feature “zipkin”)
  • “jaeger”: Jaeger (require feature “jaeger”)
  • “xray”: AWS X-Ray (require feature “xray”)
  • “ottrace”: OT Trace (third party) (not supported)
  • “none”: No automatically configured propagator.