You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.cs
+19
Original file line number
Diff line number
Diff line change
@@ -517,6 +517,25 @@ public Activity AddEvent(ActivityEvent e)
517
517
returnthis;
518
518
}
519
519
520
+
/// <summary>
521
+
/// Add an <see cref="ActivityLink"/> to the <see cref="Links"/> list.
522
+
/// </summary>
523
+
/// <param name="link">The <see cref="ActivityLink"/> to add.</param>
524
+
/// <returns><see langword="this" /> for convenient chaining.</returns>
525
+
/// <remarks>
526
+
/// For contexts that are available during span creation, adding links at span creation is preferred to calling <see cref="AddLink(ActivityLink)" /> later,
527
+
/// because head sampling decisions can only consider information present during span creation.
0 commit comments