#tetcoin #framework #blockchain #crypto

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

#43 in #tetcoin

Download history 217/week @ 2024-05-27 189/week @ 2024-06-03 184/week @ 2024-06-10 176/week @ 2024-06-17 296/week @ 2024-06-24 4/week @ 2024-07-01 136/week @ 2024-07-08 297/week @ 2024-07-15 168/week @ 2024-07-22 167/week @ 2024-07-29 208/week @ 2024-08-05 154/week @ 2024-08-12 135/week @ 2024-08-19 235/week @ 2024-08-26 111/week @ 2024-09-02 151/week @ 2024-09-09

645 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


lib.rs:

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.

Dependencies

~2–8MB
~70K SLoC