-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Support adding links to Activity after it is created #97680
Comments
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti Issue DetailsOpenTelemetry has added experimental spec for supporting link addition to spans after the span is created. This is currently not possible in .NET. Links can only be added when the activity is being created see this opening the issue for tracking as supporting this new feature would require addition of new API in System.Diagnostics.DiagnosticSource.
|
Tagging subscribers to this area: @dotnet/area-system-diagnostics-activity Issue DetailsOpenTelemetry has added experimental spec for supporting link addition to spans after the span is created. This is currently not possible in .NET. Links can only be added when the activity is being created see this opening the issue for tracking as supporting this new feature would require addition of new API in System.Diagnostics.DiagnosticSource.
|
@vishweshbankwar I have marked this for future release till we get the OTel stable and then we can bring it back to current release as needed. |
I'm also interested in this, there's a library that I'd like to enrich an activity with a link but I can't since it's already been created. |
@tarekgh this has now been marked stable in the spec. |
@vishweshbankwar could you please add the API proposal on the top? I guess this will be a simple like |
@tarekgh Added. |
System.Diagnostics.Activity AddLink(System.Diagnostics.ActivityLink link); Do we really need |
@antonfirsov - The proposal is consistent with how the current Add* extensions work e.g. https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.activity.addevent?view=net-8.0 |
Ok, missed that Activity has fluent APIs. Anything preventing us from marking this |
namespace System.Diagnostics
{
public partial class Activity
{
public System.Diagnostics.Activity AddLink(System.Diagnostics.ActivityLink link);
}
} |
OpenTelemetry has added spec for supporting link addition to spans after the span is created. PR marking spec as stable - open-telemetry/opentelemetry-specification#3887.
This is currently not possible in .NET. Links can only be added when the activity is being created see this
Opening the issue for tracking as supporting this new feature would require addition of new API in System.Diagnostics.DiagnosticSource.
API Proposal
The text was updated successfully, but these errors were encountered: