An AuditContext carries request or job details into a semantic audit action.
Plain struct — not an Ecto schema. Populated by Threadline.Plug for HTTP
requests and by the caller for Oban jobs. Passed explicitly to
Threadline.record_action/2 when recording semantic actions.
Fields
:actor_ref—%Threadline.Semantics.ActorRef{}or nil:request_id— string fromx-request-idheader or nil:correlation_id— string fromx-correlation-idheader or nil:remote_ip— string representation of the client IP or nil
Summary
Types
@type t() :: %Threadline.Semantics.AuditContext{ actor_ref: Threadline.Semantics.ActorRef.t() | nil, correlation_id: String.t() | nil, remote_ip: String.t() | nil, request_id: String.t() | nil }
Request or job context attached to a semantic audit action.