fix: call instrument span later
This commit is contained in:
parent
78bb4da72f
commit
6d5393aa38
|
@ -137,11 +137,11 @@ impl Extension for TracingExtension {
|
|||
return_type = %info.return_type,
|
||||
);
|
||||
next.run(ctx, info)
|
||||
.instrument(span)
|
||||
.map_err(|err| {
|
||||
tracinglib::error!(target: "async_graphql::graphql", error = %err.message);
|
||||
err
|
||||
})
|
||||
.instrument(span)
|
||||
.await
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user