ActivityExtensions
Extensions for Activity and ActivitySource that provide
common Open Telemetry tracing functionality for clients built on System.ClientModel.
Marks the activity as failed.
public static Activity StartClientActivity(this ActivitySource activitySource, ClientPipelineOptions options, string name, ActivityKind kind = 0, ActivityContext parentContext = default, IEnumerable<KeyValuePair<string, object>> tags = null)
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.