rafiki
rafiki copied to clipboard
Telemetry - distinction between local and remote transactions
Context
We could differentiate between remote and local transactions, and have different metrics for both.
For the 2 metrics that we have now:
transactions_total -> collected in payment>outgoing>lifecycle>handleSending
. Distinction can be done by the receiver.incomingPayment.walletAddress
being a local wallet address or not
transactions_amount -> collected in ILP connector telemetry middleware. Distinction can be done by the accounts.outgoing
being an instaceof Peer
or not. (It being Instance of Peer implies that the transaction is remote)