[feature request] Support for adding default tags to specific Tracer #6016
Labels
enhancement
New feature or request
good first issue
Good for newcomers
pkg:OpenTelemetry.Api
Issues related to OpenTelemetry.Api NuGet package
Milestone
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
The text was updated successfully, but these errors were encountered: