| Crates.io | tetcore-tracing |
| lib.rs | tetcore-tracing |
| version | 2.1.2 |
| created_at | 2021-03-08 18:13:40.373488+00 |
| updated_at | 2021-06-23 01:35:43.326178+00 |
| description | Instrumentation primitives and macros for Tetcore. |
| homepage | https://core.tetcoin.org |
| repository | https://github.com/tetcoin/tetcore |
| max_upload_size | |
| id | 365795 |
| size | 31,542 |
Tetcore tracing primitives and macros.
To trace functions or invidual code in Tetcore, 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