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
Is your feature request related to a problem? Please describe.
I'm trying to build a tracing backend that ships logs via HTTPS requests. I want to disable logging for this tracing backend because allowing logging would cause a positive feedback loop where logs cause more logs to be produced indefinitely.
I can disable logging for the thread that reqwest's future is on. Unfortunately, hyper, the backend for this crate, also tokio::spawns some futures, for which I cannot directly control logging. hyper has some way of controlling the spawning of new tasks, and I can use that to disable logging in background threads as well:
(Note that NoSubscriber of tracing currently has a bug: tokio-rs/tracing#1999, so you need a copy of its source code to actually stop tracing from logging.)
Describe the solution you'd like
Possible solutions:
Expose setting the hyper::rt::Executor directly on reqwest::ClientBuilder.
Create some wrapper trait so you don't expose hyper's trait directly.
Add a setting no_logging on reqwest::ClientBuilder that stops hyper's spawned tasks from logging.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm trying to build a tracing backend that ships logs via HTTPS requests. I want to disable logging for this tracing backend because allowing logging would cause a positive feedback loop where logs cause more logs to be produced indefinitely.
I can disable logging for the thread that reqwest's future is on. Unfortunately, hyper, the backend for this crate, also
tokio::spawn
s some futures, for which I cannot directly control logging. hyper has some way of controlling the spawning of new tasks, and I can use that to disable logging in background threads as well:(Note that
NoSubscriber
of tracing currently has a bug: tokio-rs/tracing#1999, so you need a copy of its source code to actually stop tracing from logging.)Describe the solution you'd like
Possible solutions:
hyper::rt::Executor
directly onreqwest::ClientBuilder
.no_logging
onreqwest::ClientBuilder
that stops hyper's spawned tasks from logging.The text was updated successfully, but these errors were encountered: