ActivityExtensions Class
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.
Extensions for Activity and ActivitySource that provide common Open Telemetry tracing functionality for clients built on System.ClientModel.
public static class ActivityExtensions
type ActivityExtensions = class
Public Module ActivityExtensions
- Inheritance
-
ActivityExtensions
Remarks
These APIs 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.
Methods
| MarkClientActivityFailed(Activity, Exception) |
Marks the |
| StartClientActivity(ActivitySource, ClientPipelineOptions, String, ActivityKind, ActivityContext, IEnumerable<KeyValuePair<String,Object>>) |
Creates and starts a new Activity if there are active listeners and if distributed tracing is enabled. Creates the Activity using the specified name, kind, parent activity context, and tags. |