Skip to content

[feature request] Allow escaping of wildcards in TracerProviderBuilder.AddSource #6763

@pw-sgr

Description

@pw-sgr

Package

None

Is your feature request related to a problem?

No response

What is the expected behavior?

The WildcardHelper currently does not support escaping of ? or * when adding tracing sources.

Proposed Addition:

Similar to Regex use the backslash as escape char.

\? -> ?
\* -> *
\\ -> \

Which alternative solutions or features have you considered?

Having ? or * inside the activity source name may not be ideal, it should not be dissallowed without documentation

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-triageNew issues which have not been classified or triaged by a community member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions