Skip to content

Commit ca6e02a

Browse files
authored
[.NET] Use AddException instead of RecordException (#6667)
1 parent 0f7b485 commit ca6e02a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/languages/dotnet/instrumentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ private int rollOnce()
655655
catch (Exception ex)
656656
{
657657
childActivity?.SetStatus(ActivityStatusCode.Error, "Something bad happened!");
658-
childActivity?.RecordException(ex);
658+
childActivity?.AddException(ex);
659659
throw;
660660
}
661661

0 commit comments

Comments
 (0)