Skip to content

Commit a4a81ab

Browse files
authored
Change tags parameter in Activity.AddException to be in paramater. (#103009)
1 parent 66509c1 commit a4a81ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libraries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSourceActivity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public string? Id
5050
public string? TraceStateString { get { throw null; } set { } }
5151
public System.Diagnostics.Activity AddBaggage(string key, string? value) { throw null; }
5252
public System.Diagnostics.Activity AddEvent(System.Diagnostics.ActivityEvent e) { throw null; }
53-
public System.Diagnostics.Activity AddException(System.Exception exception, System.Diagnostics.TagList tags = default, System.DateTimeOffset timestamp = default) { throw null; }
53+
public System.Diagnostics.Activity AddException(System.Exception exception, in System.Diagnostics.TagList tags = default, System.DateTimeOffset timestamp = default) { throw null; }
5454
public System.Diagnostics.Activity AddLink(System.Diagnostics.ActivityLink link) { throw null; }
5555
public System.Diagnostics.Activity AddTag(string key, string? value) { throw null; }
5656
public System.Diagnostics.Activity AddTag(string key, object? value) { throw null; }

src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public Activity AddEvent(ActivityEvent e)
532532
/// <para>- Any registered <see cref="ActivityListener"/> with the <see cref="ActivityListener.ExceptionRecorder"/> callback that adds "exception.message", "exception.stacktrace", or "exception.type" tags
533533
/// will not have these tags overwritten, except by any subsequent <see cref="ActivityListener"/> that explicitly overwrites them.</para>
534534
/// </remarks>
535-
public Activity AddException(Exception exception, TagList tags = default, DateTimeOffset timestamp = default)
535+
public Activity AddException(Exception exception, in TagList tags = default, DateTimeOffset timestamp = default)
536536
{
537537
if (exception == null)
538538
{

0 commit comments

Comments
 (0)