Merge pull request #737 from tilpner/tracing-name-error

fix(tracing): add name to error event
This commit is contained in:
Sunli 2021-12-04 15:16:41 +08:00 committed by GitHub
commit d2a71377a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,9 @@ impl Extension for TracingExtension {
);
next.run(ctx, info)
.map_err(|err| {
tracinglib::info!(target: "async_graphql::graphql", error = %err.message);
tracinglib::info!(target: "async_graphql::graphql",
error = %err.message,
"error");
err
})
.instrument(span)