I'm at a bit of a loss here and would love any help. I've attempted to move my project monitord-exporter to tracing for logging. I have a PR that moves to the tracing logging crate and uses the tracing_log adapter to get the prometheus_exporter log output.
But I seem to get no log output after I call prometheus_exporter::start(binding). I do get the inital log message from you then it all logging disappears:
cooper@home1:~/repos/monitord-exporter$ cargo run -- -l debug -p 1234
...
D0815 02:19:22.726302 472653 src/logging.rs:46] Logging is setup with LevelFilter::DEBUG level
I0815 02:19:22.726440 472653 src/main.rs:56] Starting monitord-exporter on port 1234
D0815 02:19:22.726599 472653 :] Server listening on [::]:1234
COOPER 1
COOPER 2
If I add println! into my "serve loop" I see them when I curl http://localhost:1234/metrics, but never my tracing logging
(I didn't push the println!s to the PR)
I have also tried disabling your logging feature in my Cargo.toml and that also did not help. Is there something I am doing wrong here as a user of your library?
Howdy,
I'm at a bit of a loss here and would love any help. I've attempted to move my project monitord-exporter to tracing for logging. I have a PR that moves to the tracing logging crate and uses the tracing_log adapter to get the prometheus_exporter log output.
But I seem to get no log output after I call
prometheus_exporter::start(binding)
. I do get the inital log message from you then it all logging disappears:println!
into my "serve loop" I see them when Icurl http://localhost:1234/metrics
, but never my tracing logging (I didn't push theprintln!
s to the PR)I have also tried disabling your
logging
feature in myCargo.toml
and that also did not help. Is there something I am doing wrong here as a user of your library?Are you open to PR to move to tracing? :P