Function header_interceptor

Source
pub fn header_interceptor(
    headers: Vec<(&'static str, String)>,
) -> Option<Box<dyn RequestInterceptor>>
Expand description

A convenience request interceptor for adding metadata.

List your (header, value) pairs and this interceptor will put them as metadata on all trace RPC calls.