Opentelemetry_proto.ResourceCode for resource.proto
type resource = private {mutable _presence : Pbrt.Bitfield.t;presence for 1 fields
*)mutable attributes : Common.key_value list;mutable dropped_attributes_count : int32;mutable entity_refs : Common.entity_ref list;}val default_resource : unit -> resourcedefault_resource () is a new empty value for type resource
val make_resource :
?attributes:Common.key_value list ->
?dropped_attributes_count:int32 ->
?entity_refs:Common.entity_ref list ->
unit ->
resourcemake_resource … () is a builder for type resource
val resource_set_attributes : resource -> Common.key_value list -> unitset field attributes in resource
val resource_has_dropped_attributes_count : resource -> boolpresence of field "dropped_attributes_count" in resource
val resource_set_dropped_attributes_count : resource -> int32 -> unitset field dropped_attributes_count in resource
val resource_set_entity_refs : resource -> Common.entity_ref list -> unitset field entity_refs in resource
val pp_resource : Stdlib.Format.formatter -> resource -> unitpp_resource v formats v
val encode_pb_resource : resource -> Pbrt.Encoder.t -> unitencode_pb_resource v encoder encodes v with the given encoder
val decode_pb_resource : Pbrt.Decoder.t -> resourcedecode_pb_resource decoder decodes a resource binary value from decoder