<PackageReference Include="Serilog.Sinks.OpenTelemetry" Version="4.2.0" />

OpenTelemetry.Proto.Resource.V1.Resource

sealed class Resource : IMessage<Resource>, IMessage, IEquatable<Resource>, IDeepCloneable<Resource>, IBufferMessage
Resource information.
public const int AttributesFieldNumber = 1

Field number for the "attributes" field.

public const int DroppedAttributesCountFieldNumber = 2

Field number for the "dropped_attributes_count" field.

public static MessageDescriptor Descriptor { get; }

public static MessageParser<Resource> Parser { get; }

public RepeatedField<KeyValue> Attributes { get; }

Set of attributes that describe the resource. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).

public uint DroppedAttributesCount { get; set; }

dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.

public Resource()

public Resource(Resource other)

public int CalculateSize()

public Resource Clone()

public bool Equals(Resource other)

public void MergeFrom(Resource other)

public void MergeFrom(CodedInputStream input)

public void WriteTo(CodedOutputStream output)