misc tracing span tweaks

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-12-10 06:20:30 +00:00
1 parent 5fc8e90e02
commit aba88ccead
16 files changed
+96 -24

No files matched your search

+6
View File
@@ -155,6 +155,12 @@ impl Manager {
/// should never error with a panic, and if so it should propagate, but it may
/// error with an Abort which the manager should handle along with results to
/// determine if the worker should be restarted.
#[tracing::instrument(
parent = None,
level = "trace",
skip_all,
fields(service = %service.name()),
)]
async fn worker(service: Arc<dyn Service>) -> WorkerResult {
let service_ = Arc::clone(&service);
let result = AssertUnwindSafe(service_.worker())