ActivityExtensions.MarkClientActivityFailed(Activity, Exception) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Marks the activity as failed.
public static System.Diagnostics.Activity MarkClientActivityFailed(this System.Diagnostics.Activity activity, Exception? exception);
static member MarkClientActivityFailed : System.Diagnostics.Activity * Exception -> System.Diagnostics.Activity
<Extension()>
Public Function MarkClientActivityFailed (activity As Activity, exception As Exception) As Activity
Parameters
- activity
- Activity
The activity to mark as failed.
Returns
Remarks
This method should only be used by client library authors and should not be used by consuming applications. Applications should use the System.Diagnostics package to implement distributed tracing.