Crosswake. Offline. SafeObservation
(crosswake v0.2.4)
View Source
Closed, transport-independent observation vocabulary for scoped replay.
This is deliberately not a redactor. Replay and authority values cannot be passed here: callers construct the small observation from declared values.
Summary
Types
@type projection() :: %{required(atom()) => atom() | non_neg_integer() | String.t()}
Functions
@spec to_logger(t()) :: {:ok, projection()} | {:error, Crosswake.Offline.SafeObservation.Error.t()}
@spec to_telemetry(t()) :: {:ok, projection()} | {:error, Crosswake.Offline.SafeObservation.Error.t()}