API Reference OpentelemetryStatifier v#0.1.0

Copy Markdown View Source

Modules

OpenTelemetry instrumentation for the Statifier family of statechart packages.

Starts OpentelemetryStatifier.SpanTable so the ETS table it owns exists before any handler OpentelemetryStatifier.setup/1 attaches can fire, and survives every session process. This is the package's only supervised process; a host that never calls setup/1 pays the cost of one idle process, the normal shape for instrumentation packages.

The uniform measurement/metadata-to-attribute mapping the design note (statifier-ex docs/opentelemetry.md, "Attribute mapping") fixes, applied to span events rather than re-decided per event name.

The validated result of OpentelemetryStatifier.setup/1's options, carried through :telemetry.attach/4 as the handler Config argument (the family's unanimous pattern for setup-time options - see the plan's Key Discoveries).

The :telemetry handler attached to every name Statifier.Session.Telemetry.events/0 returns.

An open macrostep span row held in OpentelemetryStatifier.SpanTable between the macrostep :start event that creates it and the :stop event whose span_ref matches.

Owns the ETS table that holds open macrostep spans and, per session, the last span context ots-j82's links read.