#tetcoin #framework #crypto #blockchain

no-std tetcore-tracing

Instrumentation primitives and macros for Tetcore

Show the crate…

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

#8 in #tetcore

Download history 58/week @ 2024-12-27 59/week @ 2025-01-03 126/week @ 2025-01-10 161/week @ 2025-01-17 77/week @ 2025-01-24 33/week @ 2025-01-31 89/week @ 2025-02-07 151/week @ 2025-02-14 106/week @ 2025-02-21 53/week @ 2025-02-28 58/week @ 2025-03-07 145/week @ 2025-03-14 53/week @ 2025-03-21 42/week @ 2025-03-28 18/week @ 2025-04-04 72/week @ 2025-04-11

197 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

~2.2–3.5MB
~73K SLoC