-
Hello! I have a Real-Time System that mostly listens to events from the outside world sources and does some actions depending on these events. The system is implemented in Rust and we are using Our Integration tests system is implemented in Typescript (using jest and nodejs, due to this system is interacting or listing to these sources which are implemented in javascript.) and we want a way to inspect inside the state of our application by emitting some tracing events using the macros we already using from the So, Is there any crates that implement a tracing subscriber and expose a WebSocket server for that for example? Thank you very much for tracing crate! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I don't believe anything like this currently exists, but it's certainly possible to implement. I think you could probably write a simple implementation of this by implementing the You may want to use the JSON formatter to format those events, so your TypeScript program can make assertions about their structure without having to parse a textual log line. |
Beta Was this translation helpful? Give feedback.
I don't believe anything like this currently exists, but it's certainly possible to implement. I think you could probably write a simple implementation of this by implementing the
MakeWriter
trait for a type that writes to a WebSocket connection. This would allow you to forward events logged by thefmt
subscriber over WebSockets.You may want to use the JSON formatter to format those events, so your TypeScript program can make assertions about their structure without having to parse a textual log line.