title: How can I reduce noise when tracing with Rust Warp?
body: <p>When using <a href="https://github.com/seanmonstar/warp" rel="nofollow noreferrer">warp</a> with tracing enabled, I find the tracing output to be noisy. This is because a set of tracing events is emitted by every route, i.e., filter, that is attempted on each request.</p>
  <p>So following the <a href="https://github.com/seanmonstar/warp/blob/master/examples/tracing.rs" rel="nofollow noreferrer">tracing example</a> from the warp repo, if I have the following routes:</p>
  <pre class="lang-rust prettyprint-override"><code>let routes = hello
      .or(goodbye)
      .with(warp::trace::request());
  </code></pre>
  <p>Every time a request to the <code>goodbye</code> route is received, two sets of tracing events will be emitted: one for the hello route, which results in a 404 rejection, and one for the goodbye route, which should reply.</p>
  <p>Does anyone have advice on how to set up your routes to eliminate all the traces emitted for the 404 rejections, and only emit traces for the routes which reply?</p>