package opentelemetry-lwt

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Opentelemetry.Metrics end
type t = Opentelemetry.Proto.Metrics.metric
val float : ?start_time_unix_nano:Opentelemetry.Timestamp_ns.t -> ?now:Opentelemetry.Timestamp_ns.t -> ?attrs: (string * [< `Bool of bool | `Float of float | `Int of int | `None | `String of string ]) list -> float -> Opentelemetry.Proto.Metrics.number_data_point
val int : ?start_time_unix_nano:Opentelemetry.Timestamp_ns.t -> ?now:Opentelemetry.Timestamp_ns.t -> ?attrs: (string * [< `Bool of bool | `Float of float | `Int of int | `None | `String of string ]) list -> int -> Opentelemetry.Proto.Metrics.number_data_point
val gauge : name:string -> ?description:string -> ?unit_:string -> Opentelemetry.Proto.Metrics.number_data_point list -> t
type aggregation_temporality = Opentelemetry.Proto.Metrics.aggregation_temporality =
  1. | Aggregation_temporality_unspecified
  2. | Aggregation_temporality_delta
  3. | Aggregation_temporality_cumulative
val sum : name:string -> ?description:string -> ?unit_:string -> ?aggregation_temporality:aggregation_temporality -> ?is_monotonic:bool -> Opentelemetry.Proto.Metrics.number_data_point list -> t
val histogram_data_point : ?start_time_unix_nano:Opentelemetry.Timestamp_ns.t -> ?now:Opentelemetry.Timestamp_ns.t -> ?attrs: (string * [< `Bool of bool | `Float of float | `Int of int | `None | `String of string ]) list -> ?exemplars:Opentelemetry.Proto.Metrics.exemplar list -> ?explicit_bounds:float list -> ?sum:float option -> bucket_counts:int64 list -> count:int64 -> unit -> Opentelemetry.Proto.Metrics.histogram_data_point
val histogram : name:string -> ?description:string -> ?unit_:string -> ?aggregation_temporality:Opentelemetry.Proto.Metrics.aggregation_temporality -> Opentelemetry.Proto.Metrics.histogram_data_point list -> t
val make_resource_metrics : ?service_name:string -> ?attrs: (string * [< `Bool of bool | `Float of float | `Int of int | `None | `String of string ]) list -> t list -> Opentelemetry.Proto.Metrics.resource_metrics
val emit : ?attrs: (string * [< `Bool of bool | `Float of float | `Int of int | `None | `String of string ]) list -> t list -> unit
OCaml

Innovation. Community. Security.