We want to track how long an Open Payments outgoing payment takes to complete. For now, we will not differentiate between payments at the local rafiki (the incoming payment is at the same rafiki), or a remote rafiki (where the incoming payment is at a different rafiki).
Note: we only care about "completed" outgoing payments, not partially completed, or failed ones.
Tasks
[x] After an outgoing payment is completed, we should increment a new outgoing_payment_completion_time_ms metric using "Date.now() - payment.createdAt"
Context
We want to track how long an Open Payments outgoing payment takes to complete. For now, we will not differentiate between payments at the local rafiki (the incoming payment is at the same rafiki), or a remote rafiki (where the incoming payment is at a different rafiki).
Note: we only care about "completed" outgoing payments, not partially completed, or failed ones.
Tasks
outgoing_payment_completion_time_ms
metric using "Date.now() - payment.createdAt"