Opentelemetry_core.MetricsMetrics.
See the spec
A single metric, measuring some time-varying quantity or statistical distribution. It is composed of one or more data points that have precise values and time stamps. Each distinct metric should have a distinct name.
val pp :
Stdlib.Format.formatter ->
Opentelemetry_core.Common_.Proto.Metrics.metric ->
unitval float :
?start_time_unix_nano:int64 ->
?attrs:
(string
* [< `Bool of bool
| `Float of float
| `Int of int
| `None
| `String of string ])
list ->
?now:Timestamp_ns.t ->
float ->
Opentelemetry_core.Common_.Proto.Metrics.number_data_pointNumber data point, as a float
val int :
?start_time_unix_nano:int64 ->
?attrs:
(string
* [< `Bool of bool
| `Float of float
| `Int of int
| `None
| `String of string ])
list ->
?now:Timestamp_ns.t ->
int ->
Opentelemetry_core.Common_.Proto.Metrics.number_data_pointNumber data point, as an int
val gauge :
name:string ->
?description:string ->
?unit_:string ->
Opentelemetry_core.Common_.Proto.Metrics.number_data_point list ->
tAggregation of a scalar metric, always with the current value
type aggregation_temporality =
Opentelemetry_core.Common_.Proto.Metrics.aggregation_temporality =
val sum :
name:string ->
?description:string ->
?unit_:string ->
?aggregation_temporality:aggregation_temporality ->
?is_monotonic:bool ->
Opentelemetry_core.Common_.Proto.Metrics.number_data_point list ->
tSum of all reported measurements over a time interval
type histogram_data_point =
Opentelemetry_core.Common_.Proto.Metrics.histogram_data_pointval histogram_data_point :
?start_time_unix_nano:int64 ->
?attrs:
(string
* [< `Bool of bool
| `Float of float
| `Int of int
| `None
| `String of string ])
list ->
?exemplars:Opentelemetry_core.Common_.Proto.Metrics.exemplar list ->
explicit_bounds:float list ->
?sum:float ->
?now:Timestamp_ns.t ->
bucket_counts:int64 list ->
count:int64 ->
unit ->
histogram_data_pointHistogram data
val histogram :
name:string ->
?description:string ->
?unit_:string ->
?aggregation_temporality:
Opentelemetry_core.Common_.Proto.Metrics.aggregation_temporality ->
histogram_data_point list ->
tval add_attrs : t -> Key_value.t list -> unit