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;
  6. bucket_counts : int64 list;
  7. explicit_bounds : float list;
  8. exemplars : exemplar list;
  9. flags : int32;
}
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;
  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;
}
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 instrumentation_library_metrics = {
  1. instrumentation_library : Opentelemetry__.Common_types.instrumentation_library option;
  2. metrics : metric list;
  3. schema_url : string;
}
type resource_metrics = {
  1. resource : Opentelemetry__.Resource_types.resource option;
  2. instrumentation_library_metrics : instrumentation_library_metrics list;
  3. schema_url : string;
}
type metrics_data = {
  1. resource_metrics : resource_metrics list;
}
type data_point_flags =
  1. | Flag_none
  2. | Flag_no_recorded_value

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 -> ?bucket_counts:int64 list -> ?explicit_bounds:float list -> ?exemplars:exemplar list -> ?flags:int32 -> 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 -> ?scale:int32 -> ?zero_count:int64 -> ?positive:exponential_histogram_data_point_buckets option -> ?negative:exponential_histogram_data_point_buckets option -> ?flags:int32 -> ?exemplars:exemplar list -> 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_instrumentation_library_metrics : ?instrumentation_library: Opentelemetry__.Common_types.instrumentation_library option -> ?metrics:metric list -> ?schema_url:string -> unit -> instrumentation_library_metrics

default_instrumentation_library_metrics () is the default value for type instrumentation_library_metrics

val default_resource_metrics : ?resource:Opentelemetry__.Resource_types.resource option -> ?instrumentation_library_metrics:instrumentation_library_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 : Stdlib.Format.formatter -> Opentelemetry__.Metrics_types.exemplar_value -> unit

pp_exemplar_value v formats v

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

pp_exemplar v formats v

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

pp_number_data_point_value v formats v

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

pp_number_data_point v formats v

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

pp_gauge v formats v

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

pp_aggregation_temporality v formats v

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

pp_sum v formats v

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

pp_histogram_data_point v formats v

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

pp_histogram v formats v

val pp_exponential_histogram_data_point_buckets : Stdlib.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 : Stdlib.Format.formatter -> Opentelemetry__.Metrics_types.exponential_histogram_data_point -> unit

pp_exponential_histogram_data_point v formats v

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

pp_exponential_histogram v formats v

val pp_summary_data_point_value_at_quantile : Stdlib.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 : Stdlib.Format.formatter -> Opentelemetry__.Metrics_types.summary_data_point -> unit

pp_summary_data_point v formats v

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

pp_summary v formats v

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

pp_metric_data v formats v

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

pp_metric v formats v

val pp_instrumentation_library_metrics : Stdlib.Format.formatter -> Opentelemetry__.Metrics_types.instrumentation_library_metrics -> unit

pp_instrumentation_library_metrics v formats v

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

pp_resource_metrics v formats v

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

pp_metrics_data v formats v

val pp_data_point_flags : Stdlib.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_instrumentation_library_metrics : Opentelemetry__.Metrics_types.instrumentation_library_metrics -> Pbrt.Encoder.t -> unit

encode_instrumentation_library_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_instrumentation_library_metrics : Pbrt.Decoder.t -> Opentelemetry__.Metrics_types.instrumentation_library_metrics

decode_instrumentation_library_metrics decoder decodes a instrumentation_library_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.