package opentelemetry

  1. Overview
  2. Docs

Types

type exemplar_value =
  1. | As_double of float
  2. | As_int of int64
and exemplar = {
  1. filtered_attributes : Opentelemetry__.Common_types.key_value list;
  2. time_unix_nano : int64;
  3. value : exemplar_value;
  4. span_id : bytes;
  5. trace_id : bytes;
}
type number_data_point_value =
  1. | As_double of float
  2. | As_int of int64
and number_data_point = {
  1. attributes : Opentelemetry__.Common_types.key_value list;
  2. start_time_unix_nano : int64;
  3. time_unix_nano : int64;
  4. value : number_data_point_value;
  5. exemplars : exemplar list;
  6. flags : int32;
}
type gauge = {
  1. data_points : number_data_point list;
}
type aggregation_temporality =
  1. | Aggregation_temporality_unspecified
  2. | Aggregation_temporality_delta
  3. | Aggregation_temporality_cumulative
type sum = {
  1. data_points : number_data_point list;
  2. aggregation_temporality : aggregation_temporality;
  3. is_monotonic : bool;
}
type histogram_data_point = {
  1. attributes : Opentelemetry__.Common_types.key_value list;
  2. start_time_unix_nano : int64;
  3. time_unix_nano : int64;
  4. count : int64;
  5. sum : float option;
  6. bucket_counts : int64 list;
  7. explicit_bounds : float list;
  8. exemplars : exemplar list;
  9. flags : int32;
  10. min : float option;
  11. max : float option;
}
type histogram = {
  1. data_points : histogram_data_point list;
  2. aggregation_temporality : aggregation_temporality;
}
type exponential_histogram_data_point_buckets = {
  1. offset : int32;
  2. bucket_counts : int64 list;
}
type exponential_histogram_data_point = {
  1. attributes : Opentelemetry__.Common_types.key_value list;
  2. start_time_unix_nano : int64;
  3. time_unix_nano : int64;
  4. count : int64;
  5. sum : float option;
  6. scale : int32;
  7. zero_count : int64;
  8. positive : exponential_histogram_data_point_buckets option;
  9. negative : exponential_histogram_data_point_buckets option;
  10. flags : int32;
  11. exemplars : exemplar list;
  12. min : float option;
  13. max : float option;
  14. zero_threshold : float;
}
type exponential_histogram = {
  1. data_points : exponential_histogram_data_point list;
  2. aggregation_temporality : aggregation_temporality;
}
type summary_data_point_value_at_quantile = {
  1. quantile : float;
  2. value : float;
}
type summary_data_point = {
  1. attributes : Opentelemetry__.Common_types.key_value list;
  2. start_time_unix_nano : int64;
  3. time_unix_nano : int64;
  4. count : int64;
  5. sum : float;
  6. quantile_values : summary_data_point_value_at_quantile list;
  7. flags : int32;
}
type summary = {
  1. data_points : summary_data_point list;
}
type metric_data =
  1. | Gauge of gauge
  2. | Sum of sum
  3. | Histogram of histogram
  4. | Exponential_histogram of exponential_histogram
  5. | Summary of summary
and metric = {
  1. name : string;
  2. description : string;
  3. unit_ : string;
  4. data : metric_data;
}
type scope_metrics = {
  1. scope : Opentelemetry__.Common_types.instrumentation_scope option;
  2. metrics : metric list;
  3. schema_url : string;
}
type resource_metrics = {
  1. resource : Opentelemetry__.Resource_types.resource option;
  2. scope_metrics : scope_metrics list;
  3. schema_url : string;
}
type metrics_data = {
  1. resource_metrics : resource_metrics list;
}
type data_point_flags =
  1. | Data_point_flags_do_not_use
  2. | Data_point_flags_no_recorded_value_mask

Default values

val default_exemplar_value : unit -> exemplar_value

default_exemplar_value () is the default value for type exemplar_value

val default_exemplar : ?filtered_attributes:Opentelemetry__.Common_types.key_value list -> ?time_unix_nano:int64 -> ?value:exemplar_value -> ?span_id:bytes -> ?trace_id:bytes -> unit -> exemplar

default_exemplar () is the default value for type exemplar

val default_number_data_point_value : unit -> number_data_point_value

default_number_data_point_value () is the default value for type number_data_point_value

val default_number_data_point : ?attributes:Opentelemetry__.Common_types.key_value list -> ?start_time_unix_nano:int64 -> ?time_unix_nano:int64 -> ?value:number_data_point_value -> ?exemplars:exemplar list -> ?flags:int32 -> unit -> number_data_point

default_number_data_point () is the default value for type number_data_point

val default_gauge : ?data_points:number_data_point list -> unit -> gauge

default_gauge () is the default value for type gauge

val default_aggregation_temporality : unit -> aggregation_temporality

default_aggregation_temporality () is the default value for type aggregation_temporality

val default_sum : ?data_points:number_data_point list -> ?aggregation_temporality:aggregation_temporality -> ?is_monotonic:bool -> unit -> sum

default_sum () is the default value for type sum

val default_histogram_data_point : ?attributes:Opentelemetry__.Common_types.key_value list -> ?start_time_unix_nano:int64 -> ?time_unix_nano:int64 -> ?count:int64 -> ?sum:float option -> ?bucket_counts:int64 list -> ?explicit_bounds:float list -> ?exemplars:exemplar list -> ?flags:int32 -> ?min:float option -> ?max:float option -> unit -> histogram_data_point

default_histogram_data_point () is the default value for type histogram_data_point

val default_histogram : ?data_points:histogram_data_point list -> ?aggregation_temporality:aggregation_temporality -> unit -> histogram

default_histogram () is the default value for type histogram

val default_exponential_histogram_data_point_buckets : ?offset:int32 -> ?bucket_counts:int64 list -> unit -> exponential_histogram_data_point_buckets

default_exponential_histogram_data_point_buckets () is the default value for type exponential_histogram_data_point_buckets

val default_exponential_histogram_data_point : ?attributes:Opentelemetry__.Common_types.key_value list -> ?start_time_unix_nano:int64 -> ?time_unix_nano:int64 -> ?count:int64 -> ?sum:float option -> ?scale:int32 -> ?zero_count:int64 -> ?positive:exponential_histogram_data_point_buckets option -> ?negative:exponential_histogram_data_point_buckets option -> ?flags:int32 -> ?exemplars:exemplar list -> ?min:float option -> ?max:float option -> ?zero_threshold:float -> unit -> exponential_histogram_data_point

default_exponential_histogram_data_point () is the default value for type exponential_histogram_data_point

val default_exponential_histogram : ?data_points:exponential_histogram_data_point list -> ?aggregation_temporality:aggregation_temporality -> unit -> exponential_histogram

default_exponential_histogram () is the default value for type exponential_histogram

val default_summary_data_point_value_at_quantile : ?quantile:float -> ?value:float -> unit -> summary_data_point_value_at_quantile

default_summary_data_point_value_at_quantile () is the default value for type summary_data_point_value_at_quantile

val default_summary_data_point : ?attributes:Opentelemetry__.Common_types.key_value list -> ?start_time_unix_nano:int64 -> ?time_unix_nano:int64 -> ?count:int64 -> ?sum:float -> ?quantile_values:summary_data_point_value_at_quantile list -> ?flags:int32 -> unit -> summary_data_point

default_summary_data_point () is the default value for type summary_data_point

val default_summary : ?data_points:summary_data_point list -> unit -> summary

default_summary () is the default value for type summary

val default_metric_data : unit -> metric_data

default_metric_data () is the default value for type metric_data

val default_metric : ?name:string -> ?description:string -> ?unit_:string -> ?data:metric_data -> unit -> metric

default_metric () is the default value for type metric

val default_scope_metrics : ?scope:Opentelemetry__.Common_types.instrumentation_scope option -> ?metrics:metric list -> ?schema_url:string -> unit -> scope_metrics

default_scope_metrics () is the default value for type scope_metrics

val default_resource_metrics : ?resource:Opentelemetry__.Resource_types.resource option -> ?scope_metrics:scope_metrics list -> ?schema_url:string -> unit -> resource_metrics

default_resource_metrics () is the default value for type resource_metrics

val default_metrics_data : ?resource_metrics:resource_metrics list -> unit -> metrics_data

default_metrics_data () is the default value for type metrics_data

val default_data_point_flags : unit -> data_point_flags

default_data_point_flags () is the default value for type data_point_flags

Formatters

val pp_exemplar_value : Format.formatter -> Opentelemetry__.Metrics_types.exemplar_value -> unit

pp_exemplar_value v formats v

val pp_exemplar : Format.formatter -> Opentelemetry__.Metrics_types.exemplar -> unit

pp_exemplar v formats v

val pp_number_data_point_value : Format.formatter -> Opentelemetry__.Metrics_types.number_data_point_value -> unit

pp_number_data_point_value v formats v

val pp_number_data_point : Format.formatter -> Opentelemetry__.Metrics_types.number_data_point -> unit

pp_number_data_point v formats v

val pp_gauge : Format.formatter -> Opentelemetry__.Metrics_types.gauge -> unit

pp_gauge v formats v

val pp_aggregation_temporality : Format.formatter -> Opentelemetry__.Metrics_types.aggregation_temporality -> unit

pp_aggregation_temporality v formats v

val pp_sum : Format.formatter -> Opentelemetry__.Metrics_types.sum -> unit

pp_sum v formats v

val pp_histogram_data_point : Format.formatter -> Opentelemetry__.Metrics_types.histogram_data_point -> unit

pp_histogram_data_point v formats v

val pp_histogram : Format.formatter -> Opentelemetry__.Metrics_types.histogram -> unit

pp_histogram v formats v

val pp_exponential_histogram_data_point_buckets : Format.formatter -> Opentelemetry__.Metrics_types.exponential_histogram_data_point_buckets -> unit

pp_exponential_histogram_data_point_buckets v formats v

val pp_exponential_histogram_data_point : Format.formatter -> Opentelemetry__.Metrics_types.exponential_histogram_data_point -> unit

pp_exponential_histogram_data_point v formats v

val pp_exponential_histogram : Format.formatter -> Opentelemetry__.Metrics_types.exponential_histogram -> unit

pp_exponential_histogram v formats v

val pp_summary_data_point_value_at_quantile : Format.formatter -> Opentelemetry__.Metrics_types.summary_data_point_value_at_quantile -> unit

pp_summary_data_point_value_at_quantile v formats v

val pp_summary_data_point : Format.formatter -> Opentelemetry__.Metrics_types.summary_data_point -> unit

pp_summary_data_point v formats v

val pp_summary : Format.formatter -> Opentelemetry__.Metrics_types.summary -> unit

pp_summary v formats v

val pp_metric_data : Format.formatter -> Opentelemetry__.Metrics_types.metric_data -> unit

pp_metric_data v formats v

val pp_metric : Format.formatter -> Opentelemetry__.Metrics_types.metric -> unit

pp_metric v formats v

val pp_scope_metrics : Format.formatter -> Opentelemetry__.Metrics_types.scope_metrics -> unit

pp_scope_metrics v formats v

val pp_resource_metrics : Format.formatter -> Opentelemetry__.Metrics_types.resource_metrics -> unit

pp_resource_metrics v formats v

val pp_metrics_data : Format.formatter -> Opentelemetry__.Metrics_types.metrics_data -> unit

pp_metrics_data v formats v

val pp_data_point_flags : Format.formatter -> Opentelemetry__.Metrics_types.data_point_flags -> unit

pp_data_point_flags v formats v

Protobuf Encoding

val encode_exemplar_value : Opentelemetry__.Metrics_types.exemplar_value -> Pbrt.Encoder.t -> unit

encode_exemplar_value v encoder encodes v with the given encoder

val encode_exemplar : Opentelemetry__.Metrics_types.exemplar -> Pbrt.Encoder.t -> unit

encode_exemplar v encoder encodes v with the given encoder

val encode_number_data_point_value : Opentelemetry__.Metrics_types.number_data_point_value -> Pbrt.Encoder.t -> unit

encode_number_data_point_value v encoder encodes v with the given encoder

val encode_number_data_point : Opentelemetry__.Metrics_types.number_data_point -> Pbrt.Encoder.t -> unit

encode_number_data_point v encoder encodes v with the given encoder

val encode_gauge : Opentelemetry__.Metrics_types.gauge -> Pbrt.Encoder.t -> unit

encode_gauge v encoder encodes v with the given encoder

val encode_aggregation_temporality : Opentelemetry__.Metrics_types.aggregation_temporality -> Pbrt.Encoder.t -> unit

encode_aggregation_temporality v encoder encodes v with the given encoder

val encode_sum : Opentelemetry__.Metrics_types.sum -> Pbrt.Encoder.t -> unit

encode_sum v encoder encodes v with the given encoder

val encode_histogram_data_point : Opentelemetry__.Metrics_types.histogram_data_point -> Pbrt.Encoder.t -> unit

encode_histogram_data_point v encoder encodes v with the given encoder

val encode_histogram : Opentelemetry__.Metrics_types.histogram -> Pbrt.Encoder.t -> unit

encode_histogram v encoder encodes v with the given encoder

val encode_exponential_histogram_data_point_buckets : Opentelemetry__.Metrics_types.exponential_histogram_data_point_buckets -> Pbrt.Encoder.t -> unit

encode_exponential_histogram_data_point_buckets v encoder encodes v with the given encoder

val encode_exponential_histogram_data_point : Opentelemetry__.Metrics_types.exponential_histogram_data_point -> Pbrt.Encoder.t -> unit

encode_exponential_histogram_data_point v encoder encodes v with the given encoder

val encode_exponential_histogram : Opentelemetry__.Metrics_types.exponential_histogram -> Pbrt.Encoder.t -> unit

encode_exponential_histogram v encoder encodes v with the given encoder

val encode_summary_data_point_value_at_quantile : Opentelemetry__.Metrics_types.summary_data_point_value_at_quantile -> Pbrt.Encoder.t -> unit

encode_summary_data_point_value_at_quantile v encoder encodes v with the given encoder

val encode_summary_data_point : Opentelemetry__.Metrics_types.summary_data_point -> Pbrt.Encoder.t -> unit

encode_summary_data_point v encoder encodes v with the given encoder

val encode_summary : Opentelemetry__.Metrics_types.summary -> Pbrt.Encoder.t -> unit

encode_summary v encoder encodes v with the given encoder

val encode_metric_data : Opentelemetry__.Metrics_types.metric_data -> Pbrt.Encoder.t -> unit

encode_metric_data v encoder encodes v with the given encoder

val encode_metric : Opentelemetry__.Metrics_types.metric -> Pbrt.Encoder.t -> unit

encode_metric v encoder encodes v with the given encoder

val encode_scope_metrics : Opentelemetry__.Metrics_types.scope_metrics -> Pbrt.Encoder.t -> unit

encode_scope_metrics v encoder encodes v with the given encoder

val encode_resource_metrics : Opentelemetry__.Metrics_types.resource_metrics -> Pbrt.Encoder.t -> unit

encode_resource_metrics v encoder encodes v with the given encoder

val encode_metrics_data : Opentelemetry__.Metrics_types.metrics_data -> Pbrt.Encoder.t -> unit

encode_metrics_data v encoder encodes v with the given encoder

val encode_data_point_flags : Opentelemetry__.Metrics_types.data_point_flags -> Pbrt.Encoder.t -> unit

encode_data_point_flags v encoder encodes v with the given encoder

Protobuf Decoding

val decode_exemplar_value : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.exemplar_value

decode_exemplar_value decoder decodes a exemplar_value value from decoder

val decode_exemplar : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.exemplar

decode_exemplar decoder decodes a exemplar value from decoder

val decode_number_data_point_value : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.number_data_point_value

decode_number_data_point_value decoder decodes a number_data_point_value value from decoder

val decode_number_data_point : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.number_data_point

decode_number_data_point decoder decodes a number_data_point value from decoder

val decode_gauge : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.gauge

decode_gauge decoder decodes a gauge value from decoder

val decode_aggregation_temporality : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.aggregation_temporality

decode_aggregation_temporality decoder decodes a aggregation_temporality value from decoder

val decode_sum : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.sum

decode_sum decoder decodes a sum value from decoder

val decode_histogram_data_point : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.histogram_data_point

decode_histogram_data_point decoder decodes a histogram_data_point value from decoder

val decode_histogram : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.histogram

decode_histogram decoder decodes a histogram value from decoder

val decode_exponential_histogram_data_point_buckets : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.exponential_histogram_data_point_buckets

decode_exponential_histogram_data_point_buckets decoder decodes a exponential_histogram_data_point_buckets value from decoder

val decode_exponential_histogram_data_point : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.exponential_histogram_data_point

decode_exponential_histogram_data_point decoder decodes a exponential_histogram_data_point value from decoder

val decode_exponential_histogram : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.exponential_histogram

decode_exponential_histogram decoder decodes a exponential_histogram value from decoder

val decode_summary_data_point_value_at_quantile : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.summary_data_point_value_at_quantile

decode_summary_data_point_value_at_quantile decoder decodes a summary_data_point_value_at_quantile value from decoder

val decode_summary_data_point : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.summary_data_point

decode_summary_data_point decoder decodes a summary_data_point value from decoder

val decode_summary : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.summary

decode_summary decoder decodes a summary value from decoder

val decode_metric_data : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.metric_data

decode_metric_data decoder decodes a metric_data value from decoder

val decode_metric : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.metric

decode_metric decoder decodes a metric value from decoder

val decode_scope_metrics : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.scope_metrics

decode_scope_metrics decoder decodes a scope_metrics value from decoder

val decode_resource_metrics : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.resource_metrics

decode_resource_metrics decoder decodes a resource_metrics value from decoder

val decode_metrics_data : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.metrics_data

decode_metrics_data decoder decodes a metrics_data value from decoder

val decode_data_point_flags : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.data_point_flags

decode_data_point_flags decoder decodes a data_point_flags value from decoder

OCaml

Innovation. Community. Security.