<PackageReference Include="Azure.Identity" Version="1.19.0" />

Azure.Core.Pipeline.DiagnosticScope

namespace Azure.Core.Pipeline { internal readonly struct DiagnosticScope : IDisposable { public bool IsEnabled { get; } public void AddAttribute(string name, string value); public void AddIntegerAttribute(string name, int value); public void AddLongAttribute(string name, long value); public void AddAttribute<[System.Runtime.CompilerServices.Nullable(2)] T>(string name, T value, Func<T, string> format); public void AddLink(string traceparent, string tracestate, IDictionary<string, object> attributes = null); public void Start(); public void SetDisplayName(string displayName); public void SetStartTime(DateTime dateTime); public void SetTraceContext(string traceparent, string tracestate = null); public void Dispose(); public void Failed(Exception exception); public void Failed(string errorCode); } }