<PackageReference Include="OpenTelemetry.Api" Version="1.19.1-rc.1" />

OpenTelemetry.Logs.LogRecordAttributeList

public struct LogRecordAttributeList : IReadOnlyList<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IReadOnlyCollection<KeyValuePair<string, object>>
public struct Enumerator : IEnumerator<KeyValuePair<string, object>>, IEnumerator, IDisposable

public int Count { get; }

public KeyValuePair<string, object> this[int index] { get; set; }

public static LogRecordAttributeList CreateFromEnumerable(IEnumerable<KeyValuePair<string, object>> attributes)

public void Add(string key, object value)

public void Add(KeyValuePair<string, object> attribute)

public void Clear()

public void RecordException(Exception exception)