David Barsky

Results 134 comments of David Barsky

I'm not sure that `tracing` is the ideal mechanism for tracing executions of simulations because `tracing` is primarily meant for collecting instrumentation data that can be arbitrarily queried over. This...

We spoke on Discord about this, but to summarize: I think a priority queue of events will be sufficient. The events will be inserted into the priority queue _during_ a...

I'm able to reproduce this with the following: ```rust use tracing::{debug, error, error_span, info, metadata::LevelFilter, trace, Instrument}; use tracing_subscriber::{ fmt::{self}, prelude::__tracing_subscriber_SubscriberExt, Layer, }; fn main() { let file_appender = tracing_appender::rolling::never(".",...

I think a portion of the issue is that the span formatters don't respect the `.with_ansi` setting, resulting output similar to this (notably, the _event_ data does not have ansi...

Oh, I figured it out. The type variable `N` (`FormatFields`) [is being shared between multiple layers](https://github.com/tokio-rs/tracing/blob/v0.1.x/tracing-subscriber/src/fmt/fmt_layer.rs#L580-L582) in the Registry, resulting in the order-dependent behavior you're seeing. For context, `tracing_subscriber::fmt::{Layer, Subscriber}`...

I have a suspicion that this might be a macOS bug, as nextest has seem a very similar bug be reported: https://github.com/nextest-rs/nextest/issues/262.

As a consumer, I like this proposal. > `hyper::body::Empty`: an empty body, yielding no data or trailers. Since it never yields data, its `Buf` type could even be some enum...

Something I didn't consider when responding to this initially: what implications, if any, does this proposed change have for [h2-style patterns](https://docs.rs/h2/0.2.7/h2/client/struct.SendRequest.html#examples-1) where the initial handshake request has a body of...

> Will using log work correctly with `[tracing::instrument]` and manual spans? If so, yeah that's an option too and probably easier one. It should, if you're forwarding `log`-formatted events to...

> I'm hitting this now myself. I've also noticed that setting the initial value to `tracing::field::Empty` and then trying to overwrite it with a value later adds empty blank spaces...