AITrace.RuntimeIdentity (AITrace v0.2.0)

Copy Markdown View Source

Supervised owner for immutable runtime identity evidence.

The runtime id is generated when this process starts and remains stable for that supervised process lifetime. Tests can start scoped owners under custom names instead of mutating VM-global state.

Summary

Types

snapshot()

@type snapshot() :: %{
  runtime_id: String.t(),
  node: String.t(),
  booted_at_wall_time: DateTime.t()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

runtime_id(owner \\ __MODULE__)

@spec runtime_id(GenServer.server()) :: String.t()

snapshot(owner \\ __MODULE__)

@spec snapshot(GenServer.server()) :: snapshot()

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()