Build APM transactions — a web interaction (kind: "web") or a background
job (kind: "job") — to deliver via Errorgap.notify_transaction/2.
Summary
Functions
The id of the transaction this process is running in, if any.
A background-job transaction for job_class on queue.
Make transaction_or_id current for the rest of this process — for a
request process (a Plug pipeline) that ends with the request.
Run fun as part of transaction (or a transaction id): errors reported
from this process while it runs carry the id as context.transaction_id,
so errorgap links them to the request or job. The previous id is restored
afterwards.
A web transaction for the normalized route template path (e.g.
/orders/{id}) and concrete path_raw.
Functions
The id of the transaction this process is running in, if any.
A background-job transaction for job_class on queue.
Options: :duration_ms, :environment, :occurred_at, :spans.
Make transaction_or_id current for the rest of this process — for a
request process (a Plug pipeline) that ends with the request.
Run fun as part of transaction (or a transaction id): errors reported
from this process while it runs carry the id as context.transaction_id,
so errorgap links them to the request or job. The previous id is restored
afterwards.
A web transaction for the normalized route template path (e.g.
/orders/{id}) and concrete path_raw.
Options: :status_code, :duration_ms, :environment, :occurred_at,
:spans, :id (generated when absent).