Skip to content

Const value as target = value in instrument. #2460

@dpc

Description

@dpc

Feature Request

Crates

tracing

Motivation

We keep the set of tracing targets as a list of const LOG_SMTH : &str = "smth";
to avoid typos.

Proposal

I'd like to:

#[instrument(tracing = LOG_SMTH)]

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