Opentelemetry_proto.MetricsSourceCode for metrics.proto
and exemplar = private {mutable _presence : Pbrt.Bitfield.t;presence for 3 fields
*)mutable filtered_attributes : Common.key_value list;mutable time_unix_nano : int64;mutable value : exemplar_value option;mutable span_id : bytes;mutable trace_id : bytes;}and number_data_point = private {mutable _presence : Pbrt.Bitfield.t;presence for 3 fields
*)mutable attributes : Common.key_value list;mutable start_time_unix_nano : int64;mutable time_unix_nano : int64;mutable value : number_data_point_value option;mutable exemplars : exemplar list;mutable flags : int32;}type sum = private {mutable _presence : Pbrt.Bitfield.t;presence for 2 fields
*)mutable data_points : number_data_point list;mutable aggregation_temporality : aggregation_temporality;mutable is_monotonic : bool;}type histogram_data_point = private {mutable _presence : Pbrt.Bitfield.t;presence for 7 fields
*)mutable attributes : Common.key_value list;mutable start_time_unix_nano : int64;mutable time_unix_nano : int64;mutable count : int64;mutable sum : float;mutable bucket_counts : int64 list;mutable explicit_bounds : float list;mutable exemplars : exemplar list;mutable flags : int32;mutable min : float;mutable max : float;}type histogram = private {mutable _presence : Pbrt.Bitfield.t;presence for 1 fields
*)mutable data_points : histogram_data_point list;mutable aggregation_temporality : aggregation_temporality;}type exponential_histogram_data_point_buckets = private {mutable _presence : Pbrt.Bitfield.t;presence for 1 fields
*)mutable offset : int32;mutable bucket_counts : int64 list;}type exponential_histogram_data_point = private {mutable _presence : Pbrt.Bitfield.t;presence for 10 fields
*)mutable attributes : Common.key_value list;mutable start_time_unix_nano : int64;mutable time_unix_nano : int64;mutable count : int64;mutable sum : float;mutable scale : int32;mutable zero_count : int64;mutable positive : exponential_histogram_data_point_buckets option;mutable negative : exponential_histogram_data_point_buckets option;mutable flags : int32;mutable exemplars : exemplar list;mutable min : float;mutable max : float;mutable zero_threshold : float;}type exponential_histogram = private {mutable _presence : Pbrt.Bitfield.t;presence for 1 fields
*)mutable data_points : exponential_histogram_data_point list;mutable aggregation_temporality : aggregation_temporality;}type summary_data_point_value_at_quantile = private {mutable _presence : Pbrt.Bitfield.t;presence for 2 fields
*)mutable quantile : float;mutable value : float;}type summary_data_point = private {mutable _presence : Pbrt.Bitfield.t;presence for 5 fields
*)mutable attributes : Common.key_value list;mutable start_time_unix_nano : int64;mutable time_unix_nano : int64;mutable count : int64;mutable sum : float;mutable quantile_values : summary_data_point_value_at_quantile list;mutable flags : int32;}and metric = private {mutable _presence : Pbrt.Bitfield.t;presence for 3 fields
*)mutable name : string;mutable description : string;mutable unit_ : string;mutable data : metric_data option;mutable metadata : Common.key_value list;}type scope_metrics = private {mutable _presence : Pbrt.Bitfield.t;presence for 1 fields
*)mutable scope : Common.instrumentation_scope option;mutable metrics : metric list;mutable schema_url : string;}type resource_metrics = private {mutable _presence : Pbrt.Bitfield.t;presence for 1 fields
*)mutable resource : Resource.resource option;mutable scope_metrics : scope_metrics list;mutable schema_url : string;}default_exemplar_value () is a new empty value for type exemplar_value
default_exemplar () is a new empty value for type exemplar
default_number_data_point_value () is a new empty value for type number_data_point_value
default_number_data_point () is a new empty value for type number_data_point
default_aggregation_temporality () is a new empty value for type aggregation_temporality
default_histogram_data_point () is a new empty value for type histogram_data_point
default_histogram () is a new empty value for type histogram
val default_exponential_histogram_data_point_buckets :
unit ->
exponential_histogram_data_point_bucketsdefault_exponential_histogram_data_point_buckets () is a new empty value for type exponential_histogram_data_point_buckets
default_exponential_histogram_data_point () is a new empty value for type exponential_histogram_data_point
default_exponential_histogram () is a new empty value for type exponential_histogram
val default_summary_data_point_value_at_quantile :
unit ->
summary_data_point_value_at_quantiledefault_summary_data_point_value_at_quantile () is a new empty value for type summary_data_point_value_at_quantile
default_summary_data_point () is a new empty value for type summary_data_point
default_metric_data () is a new empty value for type metric_data
default_scope_metrics () is a new empty value for type scope_metrics
default_resource_metrics () is a new empty value for type resource_metrics
default_metrics_data () is a new empty value for type metrics_data
default_data_point_flags () is a new empty value for type data_point_flags
val make_exemplar :
?filtered_attributes:Common.key_value list ->
?time_unix_nano:int64 ->
?value:exemplar_value ->
?span_id:bytes ->
?trace_id:bytes ->
unit ->
exemplarmake_exemplar … () is a builder for type exemplar
set field filtered_attributes in exemplar
presence of field "time_unix_nano" in exemplar
set field time_unix_nano in exemplar
set field value in exemplar
val make_number_data_point :
?attributes:Common.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_pointmake_number_data_point … () is a builder for type number_data_point
set field attributes in number_data_point
presence of field "start_time_unix_nano" in number_data_point
set field start_time_unix_nano in number_data_point
presence of field "time_unix_nano" in number_data_point
set field time_unix_nano in number_data_point
set field value in number_data_point
set field exemplars in number_data_point
presence of field "flags" in number_data_point
set field flags in number_data_point
make_gauge … () is a builder for type gauge
set field data_points in gauge
val make_sum :
?data_points:number_data_point list ->
?aggregation_temporality:aggregation_temporality ->
?is_monotonic:bool ->
unit ->
summake_sum … () is a builder for type sum
set field data_points in sum
presence of field "aggregation_temporality" in sum
set field aggregation_temporality in sum
val make_histogram_data_point :
?attributes:Common.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 ->
?min:float ->
?max:float ->
unit ->
histogram_data_pointmake_histogram_data_point … () is a builder for type histogram_data_point
val histogram_data_point_set_attributes :
histogram_data_point ->
Common.key_value list ->
unitset field attributes in histogram_data_point
presence of field "start_time_unix_nano" in histogram_data_point
set field start_time_unix_nano in histogram_data_point
presence of field "time_unix_nano" in histogram_data_point
set field time_unix_nano in histogram_data_point
presence of field "count" in histogram_data_point
set field count in histogram_data_point
presence of field "sum" in histogram_data_point
set field sum in histogram_data_point
set field bucket_counts in histogram_data_point
set field explicit_bounds in histogram_data_point
set field exemplars in histogram_data_point
presence of field "flags" in histogram_data_point
set field flags in histogram_data_point
presence of field "min" in histogram_data_point
set field min in histogram_data_point
presence of field "max" in histogram_data_point
set field max in histogram_data_point
val make_histogram :
?data_points:histogram_data_point list ->
?aggregation_temporality:aggregation_temporality ->
unit ->
histogrammake_histogram … () is a builder for type histogram
set field data_points in histogram
presence of field "aggregation_temporality" in histogram
set field aggregation_temporality in histogram
val make_exponential_histogram_data_point_buckets :
?offset:int32 ->
?bucket_counts:int64 list ->
unit ->
exponential_histogram_data_point_bucketsmake_exponential_histogram_data_point_buckets … () is a builder for type exponential_histogram_data_point_buckets
val copy_exponential_histogram_data_point_buckets :
exponential_histogram_data_point_buckets ->
exponential_histogram_data_point_bucketsval exponential_histogram_data_point_buckets_has_offset :
exponential_histogram_data_point_buckets ->
boolpresence of field "offset" in exponential_histogram_data_point_buckets
val exponential_histogram_data_point_buckets_set_offset :
exponential_histogram_data_point_buckets ->
int32 ->
unitset field offset in exponential_histogram_data_point_buckets
val exponential_histogram_data_point_buckets_set_bucket_counts :
exponential_histogram_data_point_buckets ->
int64 list ->
unitset field bucket_counts in exponential_histogram_data_point_buckets
val make_exponential_histogram_data_point :
?attributes:Common.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 ->
?negative:exponential_histogram_data_point_buckets ->
?flags:int32 ->
?exemplars:exemplar list ->
?min:float ->
?max:float ->
?zero_threshold:float ->
unit ->
exponential_histogram_data_pointmake_exponential_histogram_data_point … () is a builder for type exponential_histogram_data_point
val copy_exponential_histogram_data_point :
exponential_histogram_data_point ->
exponential_histogram_data_pointval exponential_histogram_data_point_set_attributes :
exponential_histogram_data_point ->
Common.key_value list ->
unitset field attributes in exponential_histogram_data_point
val exponential_histogram_data_point_has_start_time_unix_nano :
exponential_histogram_data_point ->
boolpresence of field "start_time_unix_nano" in exponential_histogram_data_point
val exponential_histogram_data_point_set_start_time_unix_nano :
exponential_histogram_data_point ->
int64 ->
unitset field start_time_unix_nano in exponential_histogram_data_point
val exponential_histogram_data_point_has_time_unix_nano :
exponential_histogram_data_point ->
boolpresence of field "time_unix_nano" in exponential_histogram_data_point
val exponential_histogram_data_point_set_time_unix_nano :
exponential_histogram_data_point ->
int64 ->
unitset field time_unix_nano in exponential_histogram_data_point
presence of field "count" in exponential_histogram_data_point
val exponential_histogram_data_point_set_count :
exponential_histogram_data_point ->
int64 ->
unitset field count in exponential_histogram_data_point
presence of field "sum" in exponential_histogram_data_point
val exponential_histogram_data_point_set_sum :
exponential_histogram_data_point ->
float ->
unitset field sum in exponential_histogram_data_point
presence of field "scale" in exponential_histogram_data_point
val exponential_histogram_data_point_set_scale :
exponential_histogram_data_point ->
int32 ->
unitset field scale in exponential_histogram_data_point
val exponential_histogram_data_point_has_zero_count :
exponential_histogram_data_point ->
boolpresence of field "zero_count" in exponential_histogram_data_point
val exponential_histogram_data_point_set_zero_count :
exponential_histogram_data_point ->
int64 ->
unitset field zero_count in exponential_histogram_data_point
val exponential_histogram_data_point_set_positive :
exponential_histogram_data_point ->
exponential_histogram_data_point_buckets ->
unitset field positive in exponential_histogram_data_point
val exponential_histogram_data_point_set_negative :
exponential_histogram_data_point ->
exponential_histogram_data_point_buckets ->
unitset field negative in exponential_histogram_data_point
presence of field "flags" in exponential_histogram_data_point
val exponential_histogram_data_point_set_flags :
exponential_histogram_data_point ->
int32 ->
unitset field flags in exponential_histogram_data_point
val exponential_histogram_data_point_set_exemplars :
exponential_histogram_data_point ->
exemplar list ->
unitset field exemplars in exponential_histogram_data_point
presence of field "min" in exponential_histogram_data_point
val exponential_histogram_data_point_set_min :
exponential_histogram_data_point ->
float ->
unitset field min in exponential_histogram_data_point
presence of field "max" in exponential_histogram_data_point
val exponential_histogram_data_point_set_max :
exponential_histogram_data_point ->
float ->
unitset field max in exponential_histogram_data_point
val exponential_histogram_data_point_has_zero_threshold :
exponential_histogram_data_point ->
boolpresence of field "zero_threshold" in exponential_histogram_data_point
val exponential_histogram_data_point_set_zero_threshold :
exponential_histogram_data_point ->
float ->
unitset field zero_threshold in exponential_histogram_data_point
val make_exponential_histogram :
?data_points:exponential_histogram_data_point list ->
?aggregation_temporality:aggregation_temporality ->
unit ->
exponential_histogrammake_exponential_histogram … () is a builder for type exponential_histogram
val exponential_histogram_set_data_points :
exponential_histogram ->
exponential_histogram_data_point list ->
unitset field data_points in exponential_histogram
presence of field "aggregation_temporality" in exponential_histogram
val exponential_histogram_set_aggregation_temporality :
exponential_histogram ->
aggregation_temporality ->
unitset field aggregation_temporality in exponential_histogram
val make_summary_data_point_value_at_quantile :
?quantile:float ->
?value:float ->
unit ->
summary_data_point_value_at_quantilemake_summary_data_point_value_at_quantile … () is a builder for type summary_data_point_value_at_quantile
val copy_summary_data_point_value_at_quantile :
summary_data_point_value_at_quantile ->
summary_data_point_value_at_quantileval summary_data_point_value_at_quantile_has_quantile :
summary_data_point_value_at_quantile ->
boolpresence of field "quantile" in summary_data_point_value_at_quantile
val summary_data_point_value_at_quantile_set_quantile :
summary_data_point_value_at_quantile ->
float ->
unitset field quantile in summary_data_point_value_at_quantile
val summary_data_point_value_at_quantile_has_value :
summary_data_point_value_at_quantile ->
boolpresence of field "value" in summary_data_point_value_at_quantile
val summary_data_point_value_at_quantile_set_value :
summary_data_point_value_at_quantile ->
float ->
unitset field value in summary_data_point_value_at_quantile
val make_summary_data_point :
?attributes:Common.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_pointmake_summary_data_point … () is a builder for type summary_data_point
set field attributes in summary_data_point
presence of field "start_time_unix_nano" in summary_data_point
set field start_time_unix_nano in summary_data_point
presence of field "time_unix_nano" in summary_data_point
set field time_unix_nano in summary_data_point
presence of field "count" in summary_data_point
set field count in summary_data_point
presence of field "sum" in summary_data_point
set field sum in summary_data_point
val summary_data_point_set_quantile_values :
summary_data_point ->
summary_data_point_value_at_quantile list ->
unitset field quantile_values in summary_data_point
presence of field "flags" in summary_data_point
set field flags in summary_data_point
make_summary … () is a builder for type summary
set field data_points in summary
val make_metric :
?name:string ->
?description:string ->
?unit_:string ->
?data:metric_data ->
?metadata:Common.key_value list ->
unit ->
metricmake_metric … () is a builder for type metric
set field data in metric
set field metadata in metric
val make_scope_metrics :
?scope:Common.instrumentation_scope ->
?metrics:metric list ->
?schema_url:string ->
unit ->
scope_metricsmake_scope_metrics … () is a builder for type scope_metrics
set field scope in scope_metrics
set field metrics in scope_metrics
presence of field "schema_url" in scope_metrics
set field schema_url in scope_metrics
val make_resource_metrics :
?resource:Resource.resource ->
?scope_metrics:scope_metrics list ->
?schema_url:string ->
unit ->
resource_metricsmake_resource_metrics … () is a builder for type resource_metrics
set field resource in resource_metrics
set field scope_metrics in resource_metrics
presence of field "schema_url" in resource_metrics
set field schema_url in resource_metrics
make_metrics_data … () is a builder for type metrics_data
set field resource_metrics in metrics_data
pp_exemplar_value v formats v
pp_exemplar v formats v
pp_number_data_point_value v formats v
pp_number_data_point v formats v
pp_gauge v formats v
pp_aggregation_temporality v formats v
pp_sum v formats v
pp_histogram_data_point v formats v
pp_histogram v formats v
val pp_exponential_histogram_data_point_buckets :
Format.formatter ->
exponential_histogram_data_point_buckets ->
unitpp_exponential_histogram_data_point_buckets v formats v
val pp_exponential_histogram_data_point :
Format.formatter ->
exponential_histogram_data_point ->
unitpp_exponential_histogram_data_point v formats v
pp_exponential_histogram v formats v
val pp_summary_data_point_value_at_quantile :
Format.formatter ->
summary_data_point_value_at_quantile ->
unitpp_summary_data_point_value_at_quantile v formats v
pp_summary_data_point v formats v
pp_summary v formats v
pp_metric_data v formats v
pp_metric v formats v
pp_scope_metrics v formats v
pp_resource_metrics v formats v
pp_metrics_data v formats v
pp_data_point_flags v formats v
encode_pb_exemplar_value v encoder encodes v with the given encoder
encode_pb_exemplar v encoder encodes v with the given encoder
encode_pb_number_data_point_value v encoder encodes v with the given encoder
encode_pb_number_data_point v encoder encodes v with the given encoder
encode_pb_gauge v encoder encodes v with the given encoder
encode_pb_aggregation_temporality v encoder encodes v with the given encoder
encode_pb_sum v encoder encodes v with the given encoder
encode_pb_histogram_data_point v encoder encodes v with the given encoder
encode_pb_histogram v encoder encodes v with the given encoder
val encode_pb_exponential_histogram_data_point_buckets :
exponential_histogram_data_point_buckets ->
Pbrt.Encoder.t ->
unitencode_pb_exponential_histogram_data_point_buckets v encoder encodes v with the given encoder
val encode_pb_exponential_histogram_data_point :
exponential_histogram_data_point ->
Pbrt.Encoder.t ->
unitencode_pb_exponential_histogram_data_point v encoder encodes v with the given encoder
encode_pb_exponential_histogram v encoder encodes v with the given encoder
val encode_pb_summary_data_point_value_at_quantile :
summary_data_point_value_at_quantile ->
Pbrt.Encoder.t ->
unitencode_pb_summary_data_point_value_at_quantile v encoder encodes v with the given encoder
encode_pb_summary_data_point v encoder encodes v with the given encoder
encode_pb_summary v encoder encodes v with the given encoder
encode_pb_metric_data v encoder encodes v with the given encoder
encode_pb_metric v encoder encodes v with the given encoder
encode_pb_scope_metrics v encoder encodes v with the given encoder
encode_pb_resource_metrics v encoder encodes v with the given encoder
encode_pb_metrics_data v encoder encodes v with the given encoder
encode_pb_data_point_flags v encoder encodes v with the given encoder
decode_pb_exemplar_value decoder decodes a exemplar_value binary value from decoder
decode_pb_exemplar decoder decodes a exemplar binary value from decoder
decode_pb_number_data_point_value decoder decodes a number_data_point_value binary value from decoder
decode_pb_number_data_point decoder decodes a number_data_point binary value from decoder
decode_pb_gauge decoder decodes a gauge binary value from decoder
decode_pb_aggregation_temporality decoder decodes a aggregation_temporality binary value from decoder
decode_pb_sum decoder decodes a sum binary value from decoder
decode_pb_histogram_data_point decoder decodes a histogram_data_point binary value from decoder
decode_pb_histogram decoder decodes a histogram binary value from decoder
val decode_pb_exponential_histogram_data_point_buckets :
Pbrt.Decoder.t ->
exponential_histogram_data_point_bucketsdecode_pb_exponential_histogram_data_point_buckets decoder decodes a exponential_histogram_data_point_buckets binary value from decoder
val decode_pb_exponential_histogram_data_point :
Pbrt.Decoder.t ->
exponential_histogram_data_pointdecode_pb_exponential_histogram_data_point decoder decodes a exponential_histogram_data_point binary value from decoder
decode_pb_exponential_histogram decoder decodes a exponential_histogram binary value from decoder
val decode_pb_summary_data_point_value_at_quantile :
Pbrt.Decoder.t ->
summary_data_point_value_at_quantiledecode_pb_summary_data_point_value_at_quantile decoder decodes a summary_data_point_value_at_quantile binary value from decoder
decode_pb_summary_data_point decoder decodes a summary_data_point binary value from decoder
decode_pb_summary decoder decodes a summary binary value from decoder
decode_pb_metric_data decoder decodes a metric_data binary value from decoder
decode_pb_metric decoder decodes a metric binary value from decoder
decode_pb_scope_metrics decoder decodes a scope_metrics binary value from decoder
decode_pb_resource_metrics decoder decodes a resource_metrics binary value from decoder
decode_pb_metrics_data decoder decodes a metrics_data binary value from decoder
decode_pb_data_point_flags decoder decodes a data_point_flags binary value from decoder
encode_json_exemplar_value v encoder encodes v to to json
encode_json_exemplar v encoder encodes v to to json
encode_json_number_data_point_value v encoder encodes v to to json
encode_json_number_data_point v encoder encodes v to to json
encode_json_gauge v encoder encodes v to to json
encode_json_aggregation_temporality v encoder encodes v to to json
encode_json_sum v encoder encodes v to to json
encode_json_histogram_data_point v encoder encodes v to to json
encode_json_histogram v encoder encodes v to to json
val encode_json_exponential_histogram_data_point_buckets :
exponential_histogram_data_point_buckets ->
Yojson.Basic.tencode_json_exponential_histogram_data_point_buckets v encoder encodes v to to json
val encode_json_exponential_histogram_data_point :
exponential_histogram_data_point ->
Yojson.Basic.tencode_json_exponential_histogram_data_point v encoder encodes v to to json
encode_json_exponential_histogram v encoder encodes v to to json
val encode_json_summary_data_point_value_at_quantile :
summary_data_point_value_at_quantile ->
Yojson.Basic.tencode_json_summary_data_point_value_at_quantile v encoder encodes v to to json
encode_json_summary_data_point v encoder encodes v to to json
encode_json_summary v encoder encodes v to to json
encode_json_metric_data v encoder encodes v to to json
encode_json_metric v encoder encodes v to to json
encode_json_scope_metrics v encoder encodes v to to json
encode_json_resource_metrics v encoder encodes v to to json
encode_json_metrics_data v encoder encodes v to to json
encode_json_data_point_flags v encoder encodes v to to json
decode_json_exemplar_value decoder decodes a exemplar_value value from decoder
decode_json_exemplar decoder decodes a exemplar value from decoder
decode_json_number_data_point_value decoder decodes a number_data_point_value value from decoder
decode_json_number_data_point decoder decodes a number_data_point value from decoder
decode_json_gauge decoder decodes a gauge value from decoder
decode_json_aggregation_temporality decoder decodes a aggregation_temporality value from decoder
decode_json_sum decoder decodes a sum value from decoder
decode_json_histogram_data_point decoder decodes a histogram_data_point value from decoder
decode_json_histogram decoder decodes a histogram value from decoder
val decode_json_exponential_histogram_data_point_buckets :
Yojson.Basic.t ->
exponential_histogram_data_point_bucketsdecode_json_exponential_histogram_data_point_buckets decoder decodes a exponential_histogram_data_point_buckets value from decoder
val decode_json_exponential_histogram_data_point :
Yojson.Basic.t ->
exponential_histogram_data_pointdecode_json_exponential_histogram_data_point decoder decodes a exponential_histogram_data_point value from decoder
decode_json_exponential_histogram decoder decodes a exponential_histogram value from decoder
val decode_json_summary_data_point_value_at_quantile :
Yojson.Basic.t ->
summary_data_point_value_at_quantiledecode_json_summary_data_point_value_at_quantile decoder decodes a summary_data_point_value_at_quantile value from decoder
decode_json_summary_data_point decoder decodes a summary_data_point value from decoder
decode_json_summary decoder decodes a summary value from decoder
decode_json_metric_data decoder decodes a metric_data value from decoder
decode_json_metric decoder decodes a metric value from decoder
decode_json_scope_metrics decoder decodes a scope_metrics value from decoder
decode_json_resource_metrics decoder decodes a resource_metrics value from decoder
decode_json_metrics_data decoder decodes a metrics_data value from decoder
decode_json_data_point_flags decoder decodes a data_point_flags value from decoder