Module Opentelemetry_proto.StatusSource

Code for status.proto

Types

Sourcetype 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

Sourceval default_status : unit -> status

default_status () is a new empty value for type status

Make functions

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

make_status … () is a builder for type status

Sourceval copy_status : status -> status
Sourceval status_has_code : status -> bool

presence of field "code" in status

Sourceval status_set_code : status -> int32 -> unit

set field code in status

Sourceval status_has_message : status -> bool

presence of field "message" in status

Sourceval status_set_message : status -> bytes -> unit

set field message in status

Sourceval status_set_details : status -> bytes list -> unit

set field details in status

Formatters

Sourceval pp_status : Format.formatter -> status -> unit

pp_status v formats v

Protobuf Encoding

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

encode_pb_status v encoder encodes v with the given encoder

Protobuf Decoding

Sourceval decode_pb_status : Pbrt.Decoder.t -> status

decode_pb_status decoder decodes a status binary value from decoder

Protobuf YoJson Encoding

Sourceval encode_json_status : status -> Yojson.Basic.t

encode_json_status v encoder encodes v to to json

JSON Decoding

Sourceval decode_json_status : Yojson.Basic.t -> status

decode_json_status decoder decodes a status value from decoder