otel_exporter behaviour (opentelemetry v1.5.1)

View Source

Summary

Callbacks

export/4

-callback export(traces | logs | metrics, ets:tab(), otel_resource:t(), term()) ->
                    ok | success | failed_not_retryable | failed_retryable.

init/1

-callback init(term()) -> {ok, term()} | ignore.

shutdown/1

-callback shutdown(term()) -> ok.

Functions

export_logs(_, Batch, Resource)

export_logs(ExporterModule, Batch, Resource, Config)

export_metrics(_, MetricsTid, Resource)

export_metrics(ExporterModule, MetricsTid, Resource, Config)

export_traces(_, SpansTid, Resource)

export_traces(ExporterModule, SpansTid, Resource, Config)

init(Exporter)

report_cb(_)

shutdown(_)