Skip to content

xpay: add traces for payments#9137

Open
Lagrang3 wants to merge 4 commits into
ElementsProject:masterfrom
Lagrang3:xpay-traces
Open

xpay: add traces for payments#9137
Lagrang3 wants to merge 4 commits into
ElementsProject:masterfrom
Lagrang3:xpay-traces

Conversation

@Lagrang3
Copy link
Copy Markdown
Collaborator

@Lagrang3 Lagrang3 commented May 14, 2026

Produce traces (see common/trace.h) for every payment in order to gather statistics about the duration of a full payment execution.

xpay doesn't spend much time on computation itself. The runtime bottlenecks are always rpc calls to either askrene or lightningd's pay primitives.

The trace hierarchy here takes the following form:

  • xpay/fetchinvoice: stand alone trace for the operation of fetching the invoice if xpay receives a BIP353 address or an offer.
  • xpay/payment: a whole payment
    -> xpay/getroutes: waiting for askrene-getroutes,
    -> xpay/injectpaymentonion: waiting for the payment onion to return.

Lagrang3 added 3 commits May 20, 2026 13:31
Produce traces (see common/trace.h) for every payment in order to gather
statistics about the duration of a full payment execution.

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
@Lagrang3 Lagrang3 requested a review from cdecker May 21, 2026 07:27
@Lagrang3
Copy link
Copy Markdown
Collaborator Author

Lagrang3 commented May 21, 2026

@cdecker, are these trace annotations useful? Do you think I should add more tags?

@Lagrang3 Lagrang3 marked this pull request as ready for review May 21, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant