Unverified Commit 3c416ac5 authored by Patrick Kuo's avatar Patrick Kuo Committed by GitHub
Browse files

[Bug Fix] - Incorrect trace caused by use of `Span::enter` in asynchronous code (#835)

* add id to tracing span

* Revert "add id to tracing span"

This reverts commit 5e01e6be.

* Avoid using Span::enter() in async functions, following tracing's doc instruction https://docs.rs/tracing/latest/tracing/struct.Span.html#in-asynchronous-code

* * fixed all Span::enter()
* clean up

* fix fmt

* changed RpcTracing::span -> into_span instead of cloning the span
parent e7dc80d0
Pipeline #205302 passed with stages
in 4 minutes and 43 seconds