Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ailn opened this issue Dec 10, 2024 · 0 comments
Open

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

ailn opened this issue Dec 10, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers pkg:OpenTelemetry.Api Issues related to OpenTelemetry.Api NuGet package
Milestone

Comments

@ailn
Copy link

ailn commented Dec 10, 2024

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

@ailn ailn added enhancement New feature or request needs-triage New issues which have not been classified or triaged by a community member labels Dec 10, 2024
@github-actions github-actions bot added the pkg:OpenTelemetry Issues related to OpenTelemetry NuGet package label Dec 10, 2024
@TimothyMothra TimothyMothra removed the needs-triage New issues which have not been classified or triaged by a community member label Dec 10, 2024
@cijothomas cijothomas added good first issue Good for newcomers pkg:OpenTelemetry.Api Issues related to OpenTelemetry.Api NuGet package and removed pkg:OpenTelemetry Issues related to OpenTelemetry NuGet package labels Dec 16, 2024
@CodeBlanch CodeBlanch added this to the Future milestone Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers pkg:OpenTelemetry.Api Issues related to OpenTelemetry.Api NuGet package
Projects
None yet
Development

No branches or pull requests

4 participants