<PackageReference Include="Azure.Storage.Common" Version="12.24.0" />

DiagnosticScope

public bool IsEnabled { get; }

public void AddAttribute(string name, string value)

public void AddAttribute<T>(string name, T value, Func<T, string> format)

public void AddIntegerAttribute(string name, int value)

public void AddLink(string traceparent, string tracestate, IDictionary<string, object> attributes = null)

Adds a link to the scope. This must be called before Start has been called for the DiagnosticScope.

public void AddLongAttribute(string name, long value)

public void Dispose()

public void Failed(Exception exception)

Marks the scope as failed.

public void Failed(string errorCode)

Marks the scope as failed with low-cardinality error.type attribute.

public void SetDisplayName(string displayName)

public void SetStartTime(DateTime dateTime)

public void SetTraceContext(string traceparent, string tracestate = null)

Sets the trace context for the current scope.

public void Start()