package catapult-client

  1. Overview
  2. Docs

Module Catapult_clientSource

Backend for Catapult, using a connection to the daemon.

  • The tracing is enabled/disabled via "TRACE=1".
  • The trace identifier is specified in "TRACE_ID" (as a unique string ID).
  • The daemon's address is either "TRACE_ENDPOINT=ipc://<path>" or "TRACE_ENDPOINT=tcp://host:port".
include Catapult.IMPL
Sourceval setup : unit -> unit

Install the catapult logger as a profiling backend.

Sourceval teardown : unit -> unit
Sourceval with_setup : (unit -> 'a) -> 'a
Sourcemodule Endpoint_address = Catapult.Endpoint_address
Sourceval enable : unit -> unit
Sourceval enabled : unit -> bool
Sourceval set_trace_id : string -> unit

Must be called before the setup.

Sourceval get_trace_id : unit -> string
Sourceval default_endpoint : Endpoint_address.t
Sourceval get_endpoint : unit -> Endpoint_address.t
Sourceval set_endpoint : Endpoint_address.t -> unit

Must be called before the setup.

Sourceval set_tcp_endpoint : string -> int -> unit
Sourceval set_ipc_endpoint : string -> unit
OCaml

Innovation. Community. Security.