Skip to main content

set_parent_context

Function set_parent_context 

Source
fn set_parent_context(
    span: &Span,
    metadata: Result<Reader<'_, Owned>>,
) -> Result<()>
Expand description

Make the context the client sent in the metadata of a request the parent of its span, before the span got entered. Metadata which cannot be read does not fail the request, it only loses the parent.