Files
pezkuwi-subxt/substrate/primitives/tracing/README.md
T
Chevdor a30092ab42 Markdown linter (#1309)
* Add markdown linting

- add linter default rules
- adapt rules to current code
- fix the code for linting to pass
- add CI check

fix #1243

* Fix markdown for Substrate
* Fix tooling install
* Fix workflow
* Add documentation
* Remove trailing spaces
* Update .github/.markdownlint.yaml

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Fix mangled markdown/lists
* Fix captalization issues on known words
2023-09-04 12:02:32 +03:00

16 lines
721 B
Markdown

Substrate tracing primitives and macros.
To trace functions or individual code in Substrate, this crate provides [`within_span`]
and [`enter_span`]. See the individual docs for how to use these macros.
Note that to allow traces from wasm execution environment there are
2 reserved identifiers for tracing `Field` recording, stored in the consts:
`WASM_TARGET_KEY` and `WASM_NAME_KEY` - if you choose to record fields, you
must ensure that your identifiers do not clash with either of these.
Additionally, we have a const: `WASM_TRACE_IDENTIFIER`, which holds a span name used
to signal that the 'actual' span name and target should be retrieved instead from
the associated Fields mentioned above.
License: Apache-2.0