Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Ralith the RAII guards have no way to know they're in an async context, so they can't properly enter/exit the span on every poll, leading to the behavior you observed

    an_zhuo > <@ralith:ralith.com> the RAII guards have no way to know they're in an async context, so they can't properly enter/exit the span on every poll, leading to the behavior you observed

    Thank you so much! I will try that.

    Ralith np, good luck!
    Johannes Lundberg
    Hi! How can I filter on one or more targets?
    Ralith the envlogger subscriber works the same way the envlogger crate does
    Felipe Lessa
    Hello, all! What's the best way of initializing tracing_subscriber::fmt inside tests? Should I simply try to initialize it while ignoring failures on every test? E.g.:
      fn foo() {
        let _ = tracing_subscriber::fmt::try_init();
    (we’re also not active here. we’re on discord: https://discord.gg/ArWJn2F)
    Felipe Lessa
    Cool, thanks, @davidbarsky (:
    Luis Wirth
    Hi, I've got a question:
    Is there an existing way to write the output of tracing to a file. Or can I integrate tracing with the fern crate, which already provides such functionality?
    Ralith discord's more active
    Luis Wirth
    thanks x2
    I am building a LD_Preload Library in RUST ad want to enable tracing for LD_PRELOAD Library. I had added tracing package and turned "log-always" feature in Cargo.toml and have istrumented the code with with both event!(Level::INFO, "linkat(...)"); and a println but dont the event only the println
    not the event
    In this case because it is a LD_preload I dont have a way to initializer the tracing subscriber
    I could do it in the library consttructor. But it is recommended not the create/initalize subscribers in a library. May be this is an exception case. But the LD_PRELOAD could apply to a rust executable program in future
    hi, i'm writing a toy Subscriber to discover the tracing crate. i don't get why the current_span method is never called. i thought by default nested spans would ask the subscriber for setting parents
    the new_span does'nt give writable access to the parent so it's not there to be set
    hum, i'll repost on discord
    Edward Middleton
    Are there any good resources on how people are using tracing in development? I am working on some code that involves video decompression, so a lot of bit manipulation and it has been useful in debugging parts of the code but I am finding I go into a lot of detail working through a particular path, but then want to hide most of it when moving onto the next bit, its often not mapping in ways that can be easily filtered.
    Does the tracing library support windows?
    I've been trying basic examples and nothing wants to print
    I am thinking maybe this has something to do with it being in a tokio main async function?
    Hey folks, are there any tracing subscribers which, when a program ends, display the min/max/average timing of spans? I'm trying to identify bottlenecks, and am wondering if there's an easy way to get a textual report that I can easily sort?
    I'm guessing tracing-fmt is more like a logger, but what I'm looking for is some sort of list of spans and their timings. Maybe it does that as well?