Skip to content

Conversation

@kvinwang
Copy link
Collaborator

@kvinwang kvinwang commented Jun 3, 2025

A supervisor.log file grew unexpectedly large due to improper tracing span implementation in async context. The entered span's crossing of the yield point led to span confusion in async tasks, resulting in tons of spans being squashed into single log entries.

  let span = tracing::info_span!("process", id = process_uuid);
  let _enter = span.enter();
  let (killed, result) = wait_on_process(process, kill_rx).await; // The entered span crossed this yield point.

This PR fixes it.

@kvinwang kvinwang merged commit 8aa3457 into master Jun 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants