summaryrefslogtreecommitdiffstats
path: root/vendor/tracing-attributes/tests/async_fn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/tracing-attributes/tests/async_fn.rs')
-rw-r--r--vendor/tracing-attributes/tests/async_fn.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/tracing-attributes/tests/async_fn.rs b/vendor/tracing-attributes/tests/async_fn.rs
index c89963672..d6d874ffd 100644
--- a/vendor/tracing-attributes/tests/async_fn.rs
+++ b/vendor/tracing-attributes/tests/async_fn.rs
@@ -90,6 +90,8 @@ fn async_fn_only_enters_for_polls() {
.exit(span::mock().named("test_async_fn"))
.enter(span::mock().named("test_async_fn"))
.exit(span::mock().named("test_async_fn"))
+ .enter(span::mock().named("test_async_fn"))
+ .exit(span::mock().named("test_async_fn"))
.drop_span(span::mock().named("test_async_fn"))
.done()
.run_with_handle();
@@ -120,8 +122,12 @@ fn async_fn_nested() {
.enter(span2.clone())
.event(event::mock().with_fields(field::mock("nested").with_value(&true)))
.exit(span2.clone())
+ .enter(span2.clone())
+ .exit(span2.clone())
.drop_span(span2)
.exit(span.clone())
+ .enter(span.clone())
+ .exit(span.clone())
.drop_span(span)
.done()
.run_with_handle();
@@ -199,13 +205,19 @@ fn async_fn_with_async_trait() {
.enter(span3.clone())
.event(event::mock().with_fields(field::mock("val").with_value(&2u64)))
.exit(span3.clone())
+ .enter(span3.clone())
+ .exit(span3.clone())
.drop_span(span3)
.new_span(span2.clone().with_field(field::mock("self")))
.enter(span2.clone())
.event(event::mock().with_fields(field::mock("val").with_value(&5u64)))
.exit(span2.clone())
+ .enter(span2.clone())
+ .exit(span2.clone())
.drop_span(span2)
.exit(span.clone())
+ .enter(span.clone())
+ .exit(span.clone())
.drop_span(span)
.done()
.run_with_handle();
@@ -256,6 +268,8 @@ fn async_fn_with_async_trait_and_fields_expressions() {
)
.enter(span.clone())
.exit(span.clone())
+ .enter(span.clone())
+ .exit(span.clone())
.drop_span(span)
.done()
.run_with_handle();
@@ -331,8 +345,12 @@ fn async_fn_with_async_trait_and_fields_expressions_with_generic_parameter() {
.with_field(field::mock("Self").with_value(&std::any::type_name::<TestImpl>())),
)
.enter(span4.clone())
+ .exit(span4.clone())
+ .enter(span4.clone())
.exit(span4)
.exit(span2.clone())
+ .enter(span2.clone())
+ .exit(span2.clone())
.drop_span(span2)
.new_span(
span3
@@ -341,6 +359,8 @@ fn async_fn_with_async_trait_and_fields_expressions_with_generic_parameter() {
)
.enter(span3.clone())
.exit(span3.clone())
+ .enter(span3.clone())
+ .exit(span3.clone())
.drop_span(span3)
.done()
.run_with_handle();
@@ -382,6 +402,8 @@ fn out_of_scope_fields() {
.new_span(span.clone())
.enter(span.clone())
.exit(span.clone())
+ .enter(span.clone())
+ .exit(span.clone())
.drop_span(span)
.done()
.run_with_handle();
@@ -417,6 +439,8 @@ fn manual_impl_future() {
.enter(span.clone())
.event(poll_event())
.exit(span.clone())
+ .enter(span.clone())
+ .exit(span.clone())
.drop_span(span)
.done()
.run_with_handle();
@@ -448,6 +472,8 @@ fn manual_box_pin() {
.enter(span.clone())
.event(poll_event())
.exit(span.clone())
+ .enter(span.clone())
+ .exit(span.clone())
.drop_span(span)
.done()
.run_with_handle();