-
Notifications
You must be signed in to change notification settings - Fork 854
Set Activity.Status when adding SetErrorStatusOnException #4336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
8d70a3d
0d2cd3c
a28e861
084a83e
a858d9c
5f41a23
5dff888
f11e508
3484019
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -75,7 +75,11 @@ public override void OnEnd(Activity activity) | |||
|
|
||||
| if (snapshot != pointers) | ||||
| { | ||||
| // TODO: Remove this when SetStatus is deprecated | ||||
| activity.SetStatus(Status.Error); | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume there's never a time we'd call this version of Here's another spot
We could kill two stones with one bird if we moved the call to
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alanwest I was not aware of this one, will get it updated. what do you think about marking our extension method obsolete?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would support marking it obsolete.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 |
||||
|
|
||||
| // For processors/exporters checking `Status` property. | ||||
| activity.SetStatus(ActivityStatusCode.Error); | ||||
| } | ||||
| } | ||||
| } | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.