pub fn inject_opentracing_context_into_request(span: &Span, request: Request) -> Request {
    let context = span.context();
    let mut request = request;

    global::get_text_map_propagator(|injector| {
        injector.inject_context(&context, &mut RequestCarrier::new(&mut request))
    });

    request
}
/// Injects the given Opentelemetry Context into a reqwest::Request headers to allow propagation downstream.
Injects the given Opentelemetry Context into a reqwest::Request headers to allow propagation downstream.
Injects the given Opentelemetry Context into a reqwest :: Request headers to allow propagation downstream .
pub fn inject_opentracing_context_into_request(span: &Span, request: Request) -> Request {
    let context = span.context();
    let mut request = request;
    global::get_text_map_propagator(|injector| {
        injector.inject_context(&context, &mut RequestCarrier::new(&mut request))
    });
    request
}
pub fn inject_opentracing_context_into_request ( span : & Span , request : Request ) -> Request { let context = span . context ( ) ; let mut request = request ; global :: get_text_map_propagator ( | injector | { injector . inject_context ( & context , & mut RequestCarrier :: new ( & mut request ) ) } ) ; request }
Injects the given Opentelemetry Context into a reqwest::Request headers to allow propagation downstream.
Injects the given Opentelemetry Context into a reqwest :: Request headers to allow propagation downstream .
span
&Span
request
Request
span
&Span
request
Request