Closed
Description
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
namespace System.Diagnostics
{
public partial class Activity : IDisposable
{
public System.Diagnostics.Activity AddLink(System.Diagnostics.ActivityLink link);
}
}