Open
Description
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,
- Associate XCM global
topic
with localmessage_id
and emit event so that indexers can quickly triage messages and categorize them into cross-chain flows. - All docs, examples and tests also use
SetTopic
in the same way,
Debuggability
- Emit error-specific events for XCM execution errors:
- Runtime API guide/tool for replaying XCM messages with full logging on
polkadot-docs
, e.g. https://franciscoaguirre.github.io/polkadot-dry-runner/ - Chopsticks guide on how to replay XCMs with full logging on
polkadot-docs
, - Publish log-enabled runtime versions:
- Log errors with
target: xcm
including error condition specifics and context, - Add tracing logs to all SDK-provided XCM filters, helpers, matchers and types. E.g. everything in:
- Replace
log
withtracing
on XCM-related modules #8732 - https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/xcm/xcm-builder/src/
- https://github.com/paritytech/polkadot-sdk/tree/master/cumulus/parachains/runtimes/assets/common/src
- runtime-defined XCM filters/converters (just one example)
- Replace
Developer tracing
- Enable logger for all crates unit-tests:
Metadata
Metadata
Assignees
Type
Projects
Status
In Progress