<PackageReference Include="OpenTelemetry" Version="1.12.0" />

OpenTelemetry.Resources.Resource

public class Resource
Resource represents a resource, which captures identifying information about the entities for which telemetry is reported. Use ResourceBuilder to construct resource instances.
public static Resource Empty { get; }

Gets an empty Resource.

public IEnumerable<KeyValuePair<string, object>> Attributes { get; }

Gets the collection of key-value pairs describing the resource.

public Resource(IEnumerable<KeyValuePair<string, object>> attributes)

Initializes a new instance of the Resource class.

public Resource Merge(Resource other)

Returns a new, merged Resource by merging the old Resource with the other Resource. In case of a collision the other Resource takes precedence.