AshR2RML.Telemetry.OcelAshEmitter (AshR2RML v26.8.22)

Copy Markdown View Source

Real Object-Centric Event Log (OCEL v2) event emission for every real Ash action, Ash notification, and AshR2RML Reactor workflow execution step.

Conforms to the standard IEEE/W3C OCEL 2.0 JSON specification:

  • ocel:eid - Unique event identifier (UUIDv7)
  • ocel:activity - Canonical activity name (resource.action or ash_r2rml.reactor.step)
  • ocel:timestamp - ISO 8601 UTC timestamp
  • ocel:omap - List of polymorphic object instance identifiers participating in the event
  • ocel:vmap - Map of event attributes enriched with genuine Ash and semantic introspection

Summary

Functions

Attaches :telemetry handlers for every configured Ash domain, for all CRUD action types, generic actions, Ash notifications, and AshR2RML Reactor pipeline steps.

Default path where OCEL NDJSON records are appended.

Detaches all telemetry handlers attached by this module.

Functions

attach!(opts \\ [])

@spec attach!(keyword()) :: [tuple()]

Attaches :telemetry handlers for every configured Ash domain, for all CRUD action types, generic actions, Ash notifications, and AshR2RML Reactor pipeline steps.

default_log_path()

Default path where OCEL NDJSON records are appended.

detach_all!(handler_ids)

@spec detach_all!([tuple()]) :: :ok

Detaches all telemetry handlers attached by this module.

safe_step_name(step_name)