You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature I'd like to implement for fun. The idea is basically to write a crate that has two parts.
A wrapper for std::process that lets us spawn processes with extra env variables set transparently that correspond to the span the subprocess is a child of.
An init function that can be run on startup of the subprocess to read said env variables and correctly configure its tracing stuff (subscriber?) so that It
Crates
None, new crate, tracing-subprocess?
Motivation
This was inspired by cargo fix it runs itself as a wrapper around rustc and reinvokes itself as a subprocess as part of the logic for fix. I thought it would be cool if we could trace across this subprocess boundary.
Proposal
I am looking for guidance on how to implement this.
Alternatives
Alternatively we could not, or we could implement general network based logging for cross process tracing, or maybe do it in such a way where the medium of communication is abstracted so it becomes trivial to extend, who knows!
The text was updated successfully, but these errors were encountered:
Mentioning it here, but I'm taking a look at making a more explicit "structured report types" for Serde. This might be an interesting way of handling inter-process comms? The example I give here is for going from an MCU -> a desktop PC, but if tracing had a way of "importing" these reports, it'd work the same way process -> process as my MCU example.
Feature Request
This is a feature I'd like to implement for fun. The idea is basically to write a crate that has two parts.
stuff
(subscriber?) so that ItCrates
None, new crate, tracing-subprocess?
Motivation
This was inspired by
cargo fix
it runs itself as a wrapper around rustc and reinvokes itself as a subprocess as part of the logic for fix. I thought it would be cool if we could trace across this subprocess boundary.Proposal
I am looking for guidance on how to implement this.
Alternatives
Alternatively we could not, or we could implement general network based logging for cross process tracing, or maybe do it in such a way where the medium of communication is abstracted so it becomes trivial to extend, who knows!
The text was updated successfully, but these errors were encountered: