package opentelemetry

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

opentelemetry-0.12.tbz
sha256=ca92e7395495f73b46316607c514ce0dbe5fab129dddd9a17b353f835dcbf77d
sha512=ea2afd07c8db955364681f90388959db97d7b7f5b0836bc4045eca929968d6d77905e3aa66802226c0791c2552d0e281bdf2dbfe7ed90e9877ce3cedc343823f

doc/opentelemetry/Opentelemetry/Lock/index.html

Module Opentelemetry.LockSource

Global lock.

Sourceval set_mutex : lock:(unit -> unit) -> unlock:(unit -> unit) -> unit

Set a pair of lock/unlock functions that are used to protect access to global state, if needed. By default these do nothing.

Sourceval with_lock : (unit -> 'a) -> 'a

Call f() while holding the mutex defined set_mutex, then release the mutex.