Skip to content

Consistency between various *default methods #455

@jonhoo

Description

@jonhoo

Feature Request

  • tracing::dispatcher::set_default takes &Dispatch
  • tracing::dispatcher::set_global_default takes Dispatch
  • tracing::dispatcher::with_default takes &Dispatch

These should all take one or the other. &Dispatch is definitely more ergonomic (and we clone internally), Dispatch saves us a clone in certain cases. Either way, we should stick with one.

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.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions