Module Opentelemetry_client.Exporter_queued

Build an exporter from a queue and a consumer.

The exporter will send signals into the queue (possibly dropping them if the queue is full), and the consumer is responsible for actually exporting the signals it reads from the other end of the queue.

At shutdown time, the queue is closed for writing, but only once it's empty will the consumer properly shutdown.

module BQ = Bounded_queue

Pair a queue with a consumer to build an exporter.

The resulting exporter will emit logs, spans, and traces directly into the bounded queue; while the consumer takes them from the queue to forward them somewhere else, store them, etc.

  • parameter resource_attributes

    attributes added to every "resource" batch