Timber v3.0.0-alpha.2 Timber.Contexts.JobContext View Source
The job context tracks the execution of background jobs or any isolated task with a reference. Add it like:
%Timber.Contexts.JobContext{attempt: 1, id: "my_job_id", queue_name: "my_job_queue"}
|> Timber.add_context()
Link to this section Summary
Link to this section Types
Link to this type
m()
View Source
m() :: %{ attempt: nil | pos_integer(), id: String.t(), queue_name: nil | String.t() }
Link to this type
t()
View Source
t() :: %Timber.Contexts.JobContext{ attempt: nil | pos_integer(), id: String.t(), queue_name: nil | String.t() }