package opentelemetry

  1. Overview
  2. Docs

Types

type any_value =
  1. | String_value of string
  2. | Bool_value of bool
  3. | Int_value of int64
  4. | Double_value of float
  5. | Array_value of array_value
  6. | Kvlist_value of key_value_list
  7. | Bytes_value of bytes
and array_value = {
  1. values : any_value list;
}
and key_value_list = {
  1. values : key_value list;
}
and key_value = {
  1. key : string;
  2. value : any_value option;
}
type instrumentation_library = {
  1. name : string;
  2. version : string;
}

Default values

val default_any_value : unit -> any_value

default_any_value () is the default value for type any_value

val default_array_value : ?values:any_value list -> unit -> array_value

default_array_value () is the default value for type array_value

val default_key_value_list : ?values:key_value list -> unit -> key_value_list

default_key_value_list () is the default value for type key_value_list

val default_key_value : ?key:string -> ?value:any_value option -> unit -> key_value

default_key_value () is the default value for type key_value

val default_instrumentation_library : ?name:string -> ?version:string -> unit -> instrumentation_library

default_instrumentation_library () is the default value for type instrumentation_library

Formatters

val pp_any_value : Format.formatter -> Opentelemetry__.Common_types.any_value -> unit

pp_any_value v formats v

val pp_array_value : Format.formatter -> Opentelemetry__.Common_types.array_value -> unit

pp_array_value v formats v

val pp_key_value_list : Format.formatter -> Opentelemetry__.Common_types.key_value_list -> unit

pp_key_value_list v formats v

val pp_key_value : Format.formatter -> Opentelemetry__.Common_types.key_value -> unit

pp_key_value v formats v

val pp_instrumentation_library : Format.formatter -> Opentelemetry__.Common_types.instrumentation_library -> unit

pp_instrumentation_library v formats v

Protobuf Encoding

val encode_any_value : Opentelemetry__.Common_types.any_value -> Pbrt.Encoder.t -> unit

encode_any_value v encoder encodes v with the given encoder

val encode_array_value : Opentelemetry__.Common_types.array_value -> Pbrt.Encoder.t -> unit

encode_array_value v encoder encodes v with the given encoder

val encode_key_value_list : Opentelemetry__.Common_types.key_value_list -> Pbrt.Encoder.t -> unit

encode_key_value_list v encoder encodes v with the given encoder

val encode_key_value : Opentelemetry__.Common_types.key_value -> Pbrt.Encoder.t -> unit

encode_key_value v encoder encodes v with the given encoder

val encode_instrumentation_library : Opentelemetry__.Common_types.instrumentation_library -> Pbrt.Encoder.t -> unit

encode_instrumentation_library v encoder encodes v with the given encoder

Protobuf Decoding

val decode_any_value : Pbrt.Decoder.t -> Opentelemetry__.Common_types.any_value

decode_any_value decoder decodes a any_value value from decoder

val decode_array_value : Pbrt.Decoder.t -> Opentelemetry__.Common_types.array_value

decode_array_value decoder decodes a array_value value from decoder

val decode_key_value_list : Pbrt.Decoder.t -> Opentelemetry__.Common_types.key_value_list

decode_key_value_list decoder decodes a key_value_list value from decoder

val decode_key_value : Pbrt.Decoder.t -> Opentelemetry__.Common_types.key_value

decode_key_value decoder decodes a key_value value from decoder

val decode_instrumentation_library : Pbrt.Decoder.t -> Opentelemetry__.Common_types.instrumentation_library

decode_instrumentation_library decoder decodes a instrumentation_library value from decoder

OCaml

Innovation. Community. Security.