#tetcoin #blockchain #framework

no-std tetcore-tracing

Instrumentation primitives and macros for Tetcore

3 stable releases

2.1.2 Jun 23, 2021
2.0.2 Apr 3, 2021
2.0.1 Mar 8, 2021
0.0.0 Mar 8, 2021

#159 in #tetcoin

Download history 307/week @ 2026-03-09 409/week @ 2026-03-16 251/week @ 2026-03-23 244/week @ 2026-03-30 314/week @ 2026-04-06 339/week @ 2026-04-13 257/week @ 2026-04-20 263/week @ 2026-04-27 174/week @ 2026-05-04 289/week @ 2026-05-11 290/week @ 2026-05-18 208/week @ 2026-05-25 282/week @ 2026-06-01

1,139 downloads per month
Used in 159 crates (19 directly)

Apache-2.0

40KB
676 lines

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

Dependencies

~6.5–10MB
~117K SLoC