Otel.SDK.Trace.SpanProcessor.Simple (otel v0.2.0)

Copy Markdown View Source

SimpleSpanProcessor that exports each span immediately on end (trace/sdk.md §Simple processor L1076-L1084).

Uses a GenServer to serialize export calls — the exporter is never called concurrently (spec L1146-L1147).

Public API

FunctionRole
start_link/1SDK (lifecycle)
on_start/3, on_end/2, shutdown/2, force_flush/2SDK (Simple implementation)

References

  • OTel Trace SDK §Simple processor: opentelemetry-specification/specification/trace/sdk.md L1076-L1084
  • Parent behaviour: Otel.SDK.Trace.SpanProcessor

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(config)

@spec start_link(config :: Otel.SDK.Trace.SpanProcessor.config()) ::
  GenServer.on_start()