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

#1657 in Magic Beans

Download history 12/week @ 2021-10-02 9/week @ 2021-10-09 14/week @ 2021-10-16 20/week @ 2021-10-23 12/week @ 2021-10-30 5/week @ 2021-11-06 3/week @ 2021-11-13 13/week @ 2021-11-20 18/week @ 2021-11-27 15/week @ 2021-12-04 22/week @ 2021-12-11 2/week @ 2021-12-18 9/week @ 2021-12-25 18/week @ 2022-01-01 23/week @ 2022-01-08

56 downloads per month
Used in 159 crates (19 directly)

Apache-2.0

38KB
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

~1.2–2.2MB
~46K SLoC

`