Module Opentelemetry_proto.Status

Code for status.proto

Types

type status = private {
  1. mutable _presence : Pbrt.Bitfield.t;
    (*

    presence for 2 fields

    *)
  2. mutable code : int32;
  3. mutable message : bytes;
  4. mutable details : bytes list;
}

Basic values

val default_status : unit -> status

default_status () is a new empty value for type status

Make functions

val make_status : ?code:int32 -> ?message:bytes -> ?details:bytes list -> unit -> status

make_status … () is a builder for type status

val copy_status : status -> status
val status_has_code : status -> bool

presence of field "code" in status

val status_set_code : status -> int32 -> unit

set field code in status

val status_has_message : status -> bool

presence of field "message" in status

val status_set_message : status -> bytes -> unit

set field message in status

val status_set_details : status -> bytes list -> unit

set field details in status

Formatters

val pp_status : Stdlib.Format.formatter -> status -> unit

pp_status v formats v

Protobuf Encoding

val encode_pb_status : status -> Pbrt.Encoder.t -> unit

encode_pb_status v encoder encodes v with the given encoder

Protobuf Decoding

val decode_pb_status : Pbrt.Decoder.t -> status

decode_pb_status decoder decodes a status binary value from decoder