Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XCM] Observability & Debuggability #6119

Open
15 tasks
acatangiu opened this issue Oct 18, 2024 · 1 comment
Open
15 tasks

[XCM] Observability & Debuggability #6119

acatangiu opened this issue Oct 18, 2024 · 1 comment
Labels
T6-XCM This PR/Issue is related to XCM.

Comments

@acatangiu
Copy link
Contributor

acatangiu commented Oct 18, 2024

Message Tracking

Make XCM messages easier to trace:

  • XCM transport layers emit success and failure events containing local XCM message_id,
  • Use SetTopic to set an unique global topic in all XCM programs built by FRAME or Polkadot pallets and/or System Chains runtimes,
  • Make sure the "topic" is inherited by all onward XCM messages generated as a result of local execution of an XCM program,
  • All docs, examples and tests also use SetTopic in the same way,
  • Associate XCM global topic with local message_id and emit event so that indexers can quickly triage messages and categorize them into cross-chain flows.

Debuggability

Developer tracing


Related sub-issues:

@acatangiu acatangiu added the T6-XCM This PR/Issue is related to XCM. label Oct 18, 2024
@bkontur
Copy link
Contributor

bkontur commented Oct 21, 2024

* [ ]  Make sure the "topic" is inherited by all onward XCM messages generated as a result of local execution of an XCM program,

We should be able to add (or extend existing) xcm-emulated tests with SetTopic check, that initial tracking ID generated by the sender is the same on the receiver chain:

  • PenpalA uses relaychain as reserve and sends to the PenpalB (or other chain)
  • PenpalA uses AssetHub as reserve and sends to the PenpalB (or other chain)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T6-XCM This PR/Issue is related to XCM.
Projects
Status: Todo
Development

No branches or pull requests

2 participants