Skip to content

Implement Ord for span ID #3462

@ttencate

Description

@ttencate

Feature Request

Crates

tracing_core

Motivation

Subscriber implementations might want to store spans in a BTreeMap. This requires span IDs to implement Ord. Since they're just u64s this should be trivial.

Proposal

Just derive Ord.

Alternatives

Use .into_u64() all over the place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions