View Source otel_simple_processor (opentelemetry v1.0.5)

This Span Processor synchronously exports each ended Span.

Use this processor if ending a Span should block until it has been exported. This is useful for cases like a serverless environment where the application will possibly be suspended after handling a request.

Link to this section Summary

Link to this section Functions

Link to this function

exporting(EventType, Event, Data)

View Source

Specs

force_flush(otel_span_processor:processor_config()) -> ok.
Link to this function

idle(EventType, Event, Data)

View Source

Specs

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

Specs

on_start(otel_ctx:t(), opentelemetry:span(), otel_span_processor:processor_config()) ->
            opentelemetry:span().

Equivalent to set_exporter(Exporter, []).

Link to this function

set_exporter(Exporter, Options)

View Source

Specs

set_exporter(module(), term()) -> ok.
Sets the batch exporter Exporter.