package tracing

  1. Overview
  2. Docs
Tracing library

Install

Dune Dependency

Authors

Maintainers

Sources

tracing-v0.15.0.tar.gz
sha256=41b85b4f6972cc6ec4c98a9d65b32a840005ad212bcf49dfa732250b43392ad1

doc/tracing.tracing_zero/Tracing_zero/Destinations/Buffer_until_initialized/index.html

Module Destinations.Buffer_until_initializedSource

Starts by keeping events in internal memory buffers. After set_destination is called it will copy any buffered events into the new destination upon the next buffer switch, then provide a buffer directly from the newly set destination.

This is intended for use with a global trace writer which needs to be available from initialization time, before anything like a trace file has been set up.

It also provides one other feature not guaranteed by other destinations, which is that writes after close is called will be ignored without error. This behavior was chosen so that when adding performance instrumentation to functions, users don't have to worry about those functions potentially being called in late stages of application shutdown after a trace file has been closed.

Sourcetype t
Sourceval create : unit -> t
Sourceval set_destination : t -> (module Tracing_zero__.Writer_intf.Destination) -> unit
Sourceval to_destination : t -> (module Tracing_zero__.Writer_intf.Destination)
OCaml

Innovation. Community. Security.