package opentelemetry-client-cohttp-eio

  1. Overview
  2. Docs
Collector client for opentelemetry, using cohttp + eio

Install

dune-project
 Dependency

Authors

Maintainers

Sources

opentelemetry-0.12.tbz
sha256=ca92e7395495f73b46316607c514ce0dbe5fab129dddd9a17b353f835dcbf77d
sha512=ea2afd07c8db955364681f90388959db97d7b7f5b0836bc4045eca929968d6d77905e3aa66802226c0791c2552d0e281bdf2dbfe7ed90e9877ce3cedc343823f

doc/opentelemetry-client-cohttp-eio/Opentelemetry_client_cohttp_eio/index.html

Module Opentelemetry_client_cohttp_eioSource

Sourceval get_headers : unit -> (string * string) list
Sourceval set_headers : (string * string) list -> unit

Set http headers that are sent on every http query to the collector.

Sourcemodule Config : sig ... end
Sourceval create_backend : sw:Eio.Switch.t -> ?stop:bool Atomic.t -> ?config:Config.t -> Eio_unix.Stdenv.base -> (module Opentelemetry.Collector.BACKEND)

Create a new backend using Cohttp_eio

NOTE after_cleanup optional parameter removed since NEXT_RELEASE

Sourceval setup : ?stop:bool Atomic.t -> ?config:Config.t -> ?enable:bool -> sw:Eio.Switch.t -> Eio_unix.Stdenv.base -> unit

Setup endpoint. This modifies Opentelemetry.Collector.backend.

  • parameter enable

    actually setup the backend (default true). This can be used to enable/disable the setup depending on CLI arguments or environment.

  • parameter config

    configuration to use

  • parameter stop

    an atomic boolean. When it becomes true, background threads will all stop after a little while.

Sourceval remove_backend : unit -> unit

Shutdown current backend

  • since NEXT_RELEASE
Sourceval with_setup : ?stop:bool Atomic.t -> ?config:Config.t -> ?enable:bool -> (unit -> 'a) -> Eio_unix.Stdenv.base -> 'a

with_setup () f is like setup(); f() but takes care of cleaning up after f() returns See setup for more details.