package trace

  1. Overview
  2. Docs
A stub for tracing/observability, agnostic in how data is collected

Install

Dune Dependency

Authors

Maintainers

Sources

trace-0.8.tbz
sha256=34cfa5662b611c1e246f0fb8131ee605eeb90b359c105e882f51adc7e70878c3
sha512=ea47974a77a0ab26c58fe6d1bc898d4f3e6a5f865e4c1acb4188b9acd7ba8e7527d0ea7f2ae66574ceccc14f11127ee203aedba2be334d17b36c83dabff61261

doc/trace.core/Trace_core/Level/index.html

Module Trace_core.LevelSource

Tracing levels.

This is similar to log levels in, say, Logs. In a thoroughly instrumented program, there will be a lot of spans, and enabling them all in production might slow down the application or overwhelm the tracing system; yet they might be useful in debug situations.

  • since 0.7
Sourcetype t =
  1. | Error
    (*

    Only errors

    *)
  2. | Warning
    (*

    Warnings

    *)
  3. | Info
  4. | Debug1
    (*

    Least verbose debugging level

    *)
  5. | Debug2
    (*

    Intermediate verbosity debugging level

    *)
  6. | Debug3
    (*

    Maximum verbosity debugging level

    *)
  7. | Trace
    (*

    Enable everything (default level)

    *)

Level of tracing. These levels are in increasing order, i.e if level Debug1 is enabled, everything below it (Error, Warning, Info, etc.) are also enabled.

  • since 0.7
Sourceval to_string : t -> string
  • since 0.7
Sourceval leq : t -> t -> bool
OCaml

Innovation. Community. Security.