View Source otel_batch_processor (opentelemetry v1.3.1)

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.

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.

Link to this section Summary

Link to this section Functions

Link to this function

exporting(EventType, OldState, Data)

View Source
-spec force_flush(#{reg_name := gen_statem:server_ref()}) -> ok.
Link to this function

idle(EventType, OldState, Data)

View Source
-spec on_end(opentelemetry:span(), otel_span_processor:processor_config()) ->
          true | dropped | {error, invalid_span} | {error, no_export_buffer}.
-spec on_start(otel_ctx:t(), opentelemetry:span(), otel_span_processor:processor_config()) ->
            opentelemetry:span().
This function is deprecated. Please use otel_tracer_provider.
Link to this function

set_exporter(Exporter, Options)

View Source
This function is deprecated. Please use otel_tracer_provider.
-spec set_exporter(module(), term()) -> ok.
Link to this function

set_exporter(Name, Exporter, Options)

View Source
This function is deprecated. Please use otel_tracer_provider.
-spec set_exporter(atom(), module(), term()) -> ok.
Link to this function

terminate(Reason, State, Data)

View Source