Skip to content

Commit b4632a7

Browse files
committed
fix
1 parent 721e18a commit b4632a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/asynchronous.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async fn main() {
6262
let f = async {
6363
let jhs = {
6464
let _span = LocalSpan::enter_with_local_parent("a span")
65-
.with_properties(|| [("a property", "a value")]);
65+
.with_property(|| ("a property", "a value"));
6666
parallel_job()
6767
};
6868

examples/synchronous.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async fn main() {
4545

4646
let _g = root.set_local_parent();
4747
let _span = LocalSpan::enter_with_local_parent("a span")
48-
.with_properties(|| [("a property", "a value")]);
48+
.with_property(|| ("a property", "a value"));
4949

5050
for i in 1..=10 {
5151
func1(i);

0 commit comments

Comments
 (0)