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 ->
?attrs:
(string * [< `Bool of bool | `Int of int | `None | `String of string ])
list ->
float ->
Opentelemetry__Metrics_types.number_data_pointNumber data point, as a float
val int :
?start_time_unix_nano:int64 ->
?now:Opentelemetry.Timestamp_ns.t ->
?attrs:
(string * [< `Bool of bool | `Int of int | `None | `String of string ])
list ->
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:aggregation_temporality ->
?is_monotonic:bool ->
Opentelemetry__Metrics_types.number_data_point list ->
tSum of all reported measurements over a time interval
val make_resource_metrics :
?attrs:
(string * [< `Bool of bool | `Int of int | `None | `String of string ])
list ->
t list ->
Opentelemetry__Metrics_types.resource_metricsAggregate metrics into a Proto.Metrics.resource_metrics
val emit :
?attrs:
(string * [< `Bool of bool | `Int of int | `None | `String of string ])
list ->
t list ->
unit Lwt.tEmit some metrics to the collector.