package opentelemetry

  1. Overview
  2. Docs
Instrumentation for https://opentelemetry.io

Install

Dune Dependency

Authors

Maintainers

Sources

opentelemetry-0.11.2.tbz
sha256=716a7407dcbb8d950295f55d2b72fec14bf122558972681d66b4a56352987c1c
sha512=4cdf5ffe31b6b03741734cda285ec8d5c261fafb7dff1c74e40472bc46ba0e97cb2df88a1557874482918303607e9ae21362ebc064985960bc002517e313d88c

doc/opentelemetry/Opentelemetry/Metrics_callbacks/index.html

Module Opentelemetry.Metrics_callbacksSource

A set of callbacks that produce metrics when called. The metrics are automatically called regularly.

This allows applications to register metrics callbacks from various points in the program (or even in libraries), and not worry about setting alarms/intervals to emit them.

Sourceval register : (unit -> Metrics.t list) -> unit

register f adds the callback f to the list.

f will be called at unspecified times and is expected to return a list of metrics. It might be called regularly by the backend, in particular (but not only) when Collector.tick is called.

OCaml

Innovation. Community. Security.