Skip to content

Commit 855e9c4

Browse files
authored
Fix typo in reporting exceptions documentation (#5363)
1 parent a120755 commit 855e9c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/trace/reporting-exceptions/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ using (var activity = MyActivitySource.StartActivity("Foo"))
9595
}
9696
catch (SomeException ex)
9797
{
98-
activity?.SetStatus(ActivityStatusCode.Error, ex.message);
98+
activity?.SetStatus(ActivityStatusCode.Error, ex.Message);
9999
}
100100
}
101101
```
@@ -119,7 +119,7 @@ using (var activity = MyActivitySource.StartActivity("Foo"))
119119
}
120120
catch (SomeException ex)
121121
{
122-
activity?.SetStatus(ActivityStatusCode.Error, ex.message);
122+
activity?.SetStatus(ActivityStatusCode.Error, ex.Message);
123123
activity?.RecordException(ex);
124124
}
125125
}

0 commit comments

Comments
 (0)