Module Opentelemetry_proto.Resource

Code for resource.proto

Types

type resource = {
  1. attributes : Common.key_value list;
  2. dropped_attributes_count : int32;
}

Basic values

val default_resource : ?attributes:Common.key_value list -> ?dropped_attributes_count:int32 -> unit -> resource

default_resource () is the default value for type resource

Make functions

val make_resource : attributes:Common.key_value list -> dropped_attributes_count:int32 -> unit -> resource

make_resource … () is a builder for type resource

Formatters

val pp_resource : Stdlib.Format.formatter -> resource -> unit

pp_resource v formats v

Protobuf Encoding

val encode_pb_resource : resource -> Pbrt.Encoder.t -> unit

encode_pb_resource v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_resource : Pbrt.Decoder.t -> resource

decode_pb_resource decoder decodes a resource binary value from decoder