opentelemetry

Instrumentation for https://opentelemetry.io
Library opentelemetry

Types

type exemplar_value =
| As_double of float
| As_int of int64
and exemplar = {
filtered_attributes : Opentelemetry__Common_types.key_value list;
time_unix_nano : int64;
value : exemplar_value;
span_id : bytes;
trace_id : bytes;
}
type number_data_point_value =
| As_double of float
| As_int of int64
and 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;
}
type gauge = {
data_points : number_data_point list;
}
type aggregation_temporality =
| Aggregation_temporality_unspecified
| Aggregation_temporality_delta
| Aggregation_temporality_cumulative
type sum = {
data_points : number_data_point list;
aggregation_temporality : aggregation_temporality;
is_monotonic : bool;
}
type 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;
}
type histogram = {
data_points : histogram_data_point list;
aggregation_temporality : aggregation_temporality;
}
type exponential_histogram_data_point_buckets = {
offset : int32;
bucket_counts : int64 list;
}
type 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;
}
type exponential_histogram = {
data_points : exponential_histogram_data_point list;
aggregation_temporality : aggregation_temporality;
}
type summary_data_point_value_at_quantile = {
quantile : float;
value : float;
}
type 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;
}
type summary = {
data_points : summary_data_point list;
}
type metric_data =
| Gauge of gauge
| Sum of sum
| Histogram of histogram
| Exponential_histogram of exponential_histogram
| Summary of summary
and metric = {
name : string;
description : string;
unit_ : string;
data : metric_data;
}
type instrumentation_library_metrics = {
instrumentation_library : Opentelemetry__Common_types.instrumentation_library option;
metrics : metric list;
schema_url : string;
}
type resource_metrics = {
resource : Opentelemetry__Resource_types.resource option;
instrumentation_library_metrics : instrumentation_library_metrics list;
schema_url : string;
}
type metrics_data = {
resource_metrics : resource_metrics list;
}
type data_point_flags =
| Flag_none
| 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 : 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_instrumentation_library_metrics : Format.formatter -> Opentelemetry__Metrics_types.instrumentation_library_metrics -> unit

pp_instrumentation_library_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_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