Skip to content

[feature request] Support for adding default tags to specific Tracer #6016

Open
@ailn

Description

Package

OpenTelemetry

Is your feature request related to a problem?

For example, I have multiple instances of an app which have different configurations. I'd like to tag those differences in spans. The request is similar to this one (dotnet/runtime#84321) but for tracing.

What is the expected behavior?

In .net9 System.Diagnostics.ActivitySource got new ctor overload which has the 'tags':
public ActivitySource(string name, string? version = "", IEnumerable<KeyValuePair<string, object?>>? tags = default)

Please add similar overload to TracerProvider.GetTracer

Which alternative solutions or features have you considered?

I can use System.Diagnostics.ActivitySource but I'd like to use the shim.

Additional context

No response

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions