Module otel_batch_processor

This module has the behaviour that each exporter must implement and creates the buffer of trace spans to be exported.

Behaviours: gen_statem, otel_span_processor.

Description

This module has the behaviour that each exporter must implement and creates the buffer of trace spans to be exported.

The exporter process can be configured to export the current finished spans based on timeouts and the size of the finished spans table.

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.

Function Index

callback_mode/0
exporting/3
idle/3
init/1
on_end/2
on_start/3
set_exporter/1Equivalent to set_exporter(Exporter, []).
set_exporter/2Sets the batch exporter Exporter.
start_link/1
terminate/3

Function Details

callback_mode/0

callback_mode() -> any()

exporting/3

exporting(EventType, OldState, Data) -> any()

idle/3

idle(EventType, OldState, Data) -> any()

init/1

init(X1) -> any()

on_end/2

on_end(Span::opentelemetry:span(), X2::otel_span_processor:processor_config()) -> true | dropped | {error, invalid_span} | {error, no_export_buffer}

on_start/3

on_start(Ctx::otel_ctx:t(), Span::opentelemetry:span(), X3::otel_span_processor:processor_config()) -> opentelemetry:span()

set_exporter/1

set_exporter(Exporter) -> any()

Equivalent to set_exporter(Exporter, []).

set_exporter/2

set_exporter(Exporter::module(), Options::term()) -> ok

Sets the batch exporter Exporter.

start_link/1

start_link(Opts) -> any()

terminate/3

terminate(X1, X2, Data) -> any()


Generated by EDoc