BB.Jido.Telemetry (bb_jido v0.1.2)

Copy Markdown View Source

Telemetry events emitted by bb_jido.

Two event spans are emitted, both following the standard :telemetry.span/3 conventions:

Each :start, :stop, and :exception event carries measurements with :system_time/:duration and metadata including :robot plus the action-specific identifier (:command or :reactor).

A [:bb_jido, :signal] event is emitted for every signal forwarded by BB.Jido.PubSubBridge, with metadata %{robot: ..., type: ...}.

Summary

Functions

Emits a [:bb_jido, :signal] event for a forwarded signal.

Span helper for telemetry-wrapped action execution. Returns whatever fun returns.

Functions

emit_signal(robot, type)

@spec emit_signal(module() | nil, String.t()) :: :ok

Emits a [:bb_jido, :signal] event for a forwarded signal.

span(event_prefix, metadata, fun)

@spec span([atom()], map(), (-> result)) :: result when result: var

Span helper for telemetry-wrapped action execution. Returns whatever fun returns.