otel_batch_processor (opentelemetry v1.6.0)

View Source

The Batch Span Processor implements the otel_span_processor behaviour.

It stores finished Spans in a ETS table buffer and exports them on an interval or when the table reaches a maximum size.

You can configure these timeouts:

  • exporting_timeout_ms: how long to let the exports run before killing.
  • check_table_size_ms: timeout to check the size of the export table.
  • scheduled_delay_ms: how often to trigger running the exporters.

The size limit of the current table where finished spans are stored can be configured with the max_queue_size option.

Summary

Functions

set_exporter(Exporter)

This function is deprecated. Please use otel_tracer_provider.

set_exporter(Exporter, Options)

This function is deprecated. Please use otel_tracer_provider.
-spec set_exporter(module(), term()) -> ok.

set_exporter(Name, Exporter, Options)

This function is deprecated. Please use otel_tracer_provider.
-spec set_exporter(atom(), module(), term()) -> ok.

start_link(Config)

-spec start_link(#{name := atom() | list()}) -> {ok, pid(), map()}.

Starts a Batch Span Processor.