Opentelemetry_lwt.Metricsinclude module type of struct include Opentelemetry.Metrics endMetrics.
See the spec
val float :
?start_time_unix_nano:int64 ->
?now:Opentelemetry.Timestamp_ns.t ->
float ->
Opentelemetry__Metrics_types.number_data_pointNumber data point, as a float
val int :
?start_time_unix_nano:int64 ->
?now:Opentelemetry.Timestamp_ns.t ->
int ->
Opentelemetry__Metrics_types.number_data_pointNumber data point, as an int
val gauge :
name:string ->
?description:string ->
?unit_:string ->
Opentelemetry__Metrics_types.number_data_point list ->
tAggregation of a scalar metric, always with the current value
val sum :
name:string ->
?description:string ->
?unit_:string ->
?aggregation_temporality:Opentelemetry__Metrics_types.aggregation_temporality ->
?is_monotonic:bool ->
Opentelemetry__Metrics_types.number_data_point list ->
tSum of all reported measurements over a time interval
val emit : t list -> unit Lwt.tEmit some metrics to the collector.