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] Add support to 'add links' to TelemetrySpan as it was added to Activity in .net9 #6042

Open
ailn opened this issue Dec 18, 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 18, 2024

Package

OpenTelemetry

Is your feature request related to a problem?

I want to be able to add span links to already created spans. This ability was recently added to System.Diagnostics.Activity (see AddLinks method)

What is the expected behavior?

Add 'AddLinks' method to TelemetrySpan

Which alternative solutions or features have you considered?

Right now I use a Activity directly, but would like to use the shim

E.g.

// todo: replace with shim implementation as soon as AddLink is available
Activity currentActivity = Activity.Current!;
currentActivity.AddLink(new ActivityLink(span.Context));

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 18, 2024
@github-actions github-actions bot added the pkg:OpenTelemetry Issues related to OpenTelemetry NuGet package label Dec 18, 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 18, 2024
@CodeBlanch CodeBlanch added this to the Future milestone Dec 20, 2024
@CodeBlanch CodeBlanch removed the needs-triage New issues which have not been classified or triaged by a community member label 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

3 participants