interledger / rafiki

An open-source, comprehensive Interledger service for wallet providers, enabling them to provide Interledger functionality to their users.
https://rafiki.dev/
Apache License 2.0
226 stars 77 forks source link

Track network/conversion fees #2737

Open mkurapov opened 1 month ago

mkurapov commented 1 month ago

Context

We want to track the network/conversion fees that occurred for a particular outgoing payment. We should have a new metric payment_fees, that is incremented by the following: outgoingPayment.sentAmount - outgoingPayment.receiveAmount. Both of the amounts need to be converted to a base currency, how we currently do for the transactions_amount metric.