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,
|
return_type = %info.return_type,
|
||||||
);
|
);
|
||||||
next.run(ctx, info)
|
next.run(ctx, info)
|
||||||
.instrument(span)
|
|
||||||
.map_err(|err| {
|
.map_err(|err| {
|
||||||
tracinglib::error!(target: "async_graphql::graphql", error = %err.message);
|
tracinglib::error!(target: "async_graphql::graphql", error = %err.message);
|
||||||
err
|
err
|
||||||
})
|
})
|
||||||
|
.instrument(span)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user