Skip to content

Span not found in formatting layer #3406

@dentiny

Description

@dentiny

Bug Report

Hi team, I have met an issue with format layer, with error message "Span not found", in detail code reference here:

let span = ctx.span(id).expect("Span not found, this is a bug");

After doing some search, I found it could be the same issue with tokio-rs/tracing-opentelemetry#86

Would like to know how you guys think about it, and whether there's any concern to skip callback when parent span not found. Thank you!

Version

v0.3.20

Platform

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    crate/subscriberRelated to the `tracing-subscriber` crateneeds/reproA reproduction is required in order to fix a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions