Skip to content

core: Rework ValueSets to support indexing in addition to visiting #926

Open
@davidbarsky

Description

@davidbarsky

Feature Request

Crates

  • tracing-core

Motivation

The current tracing_core::field::ValueSet requires users to implement a visitor to process and record Values. While this is performant, users have expressed confusion and occasional frustration with this requirement.

Proposal

We should consider dispatching Value primitive values using an enum rather than a trait object in order to... (I'm not sure, @hawkw, can you add additional details?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    crate/coreRelated to the `tracing-core` cratemeta/breakingThis is a breaking change, and should wait until the next breaking release.needs/designAdditional design discussion is required.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions