package opentelemetry-client-cohttp-lwt

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

Install

Dune Dependency

Authors

Maintainers

Sources

v0.6.tar.gz
md5=bb3860b2d9941bbb3680aef45f8db3d8
sha512=a66f9781fdef825addefa3a9c425a454c98f388ae0e476cf216a555d1573291347668a9aa6461ae17074b17504622cd77bbb2302edb55d18b32324d112e782ff

doc/opentelemetry-client-cohttp-lwt/Opentelemetry_client_cohttp_lwt/index.html

Module Opentelemetry_client_cohttp_lwtSource

Sourceval get_url : unit -> string
Sourceval set_url : string -> unit

Url of the endpoint. Default is "http://localhost:4318", or "OTEL_EXPORTER_OTLP_ENDPOINT" if set.

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 : ?stop:bool Opentelemetry_client_cohttp_lwt__.Common_.Atomic.t -> ?config:Config.t -> unit -> (module Opentelemetry.Collector.BACKEND)
Sourceval setup : ?stop:bool Opentelemetry_client_cohttp_lwt__.Common_.Atomic.t -> ?config:Config.t -> ?enable:bool -> unit -> 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 with_setup : ?stop:bool Opentelemetry_client_cohttp_lwt__.Common_.Atomic.t -> ?config:Config.t -> ?enable:bool -> unit -> (unit -> 'a) -> 'a

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

OCaml

Innovation. Community. Security.