package opentelemetry

  1. Overview
  2. Docs
Core library for instrumentation and serialization for https://opentelemetry.io

Install

dune-project
 Dependency

Authors

Maintainers

Sources

opentelemetry-0.91.1.tbz
sha256=30f344e7168a793d02c12d69c0f566b06eb963f52db3321e415ef6c5cd3d504d
sha512=19160da37cab59a23333d815baa67035f666e700a386953ec9957c685a0b72fa87919bac6a6651e50b1619773b3be7170bcc067c2d5316436b988bcf8d18dcba

doc/opentelemetry.core/Opentelemetry_core/Exporter/index.html

Module Opentelemetry_core.ExporterSource

Exporter.

This is the pluggable component that actually sends signals to a OTEL collector, or prints them, or saves them somewhere.

This is part of the SDK, not just the API, so most real implementations live in their own library.

Sourcetype t = {
  1. export : Any_signal_l.t -> unit;
    (*

    Export a batch of signals. Called by the provider when signals are ready to be sent.

    *)
  2. active : unit -> Opentelemetry_util.Aswitch.t;
    (*

    Lifecycle switch: turns off when the exporter has fully shut down (i.e. the consumer queue is drained).

    *)
  3. shutdown : unit -> unit;
    (*

    shutdown () initiates shutdown: flushes remaining batches, closes the queue, etc. Watch active to know when it's complete.

    • since 0.12
    *)
  4. self_metrics : unit -> Metrics.t list;
    (*

    metrics about the exporter itself

    *)
}

Main exporter interface.

Sourceval dummy : unit -> t

Dummy exporter, does nothing

Sourceval shutdown : t -> unit
Sourceval cleanup : t -> unit
Sourceval self_metrics : t -> Metrics.t list