View Source AntikytheraCore.GearLog.ContextHelper (antikythera v0.5.1)
Helpers to get/set context ID.
Context IDs are mainly to be used for logging.
In order to keep Logger
's interface clean (i.e. not to make context_id
trump data solely for logging purpose),
context ID is stored in each process's process dictionary and fetched when a process emits a log message.
Summary
Functions
@spec get!() :: Antikythera.ContextId.t()
@spec set(Antikythera.Conn.t() | Antikythera.Context.t() | Antikythera.ContextId.t()) :: :ok