mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 06:27:58 +00:00
Change TRACING_SET to static (#7607)
* change TRACING_SET to static * Update primitives/io/src/lib.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * modify test with nested spans Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -261,6 +261,17 @@ sp_core::wasm_export_functions! {
|
||||
wasm_tracing::exit(span_id)
|
||||
}
|
||||
|
||||
fn test_nested_spans() {
|
||||
sp_io::init_tracing();
|
||||
let span_id = wasm_tracing::enter_span(Default::default());
|
||||
{
|
||||
sp_io::init_tracing();
|
||||
let span_id = wasm_tracing::enter_span(Default::default());
|
||||
wasm_tracing::exit(span_id);
|
||||
}
|
||||
wasm_tracing::exit(span_id);
|
||||
}
|
||||
|
||||
fn returns_mutable_static() -> u64 {
|
||||
unsafe {
|
||||
MUTABLE_STATIC += 1;
|
||||
|
||||
Reference in New Issue
Block a user