anchor.diff:  
   handle(<<"GET">>, <<"/logs">>, Req) ->
       with_bench_id(Req, fun(Id) ->
  -        #{config:= Config} = mzb_api_server:status(Id),
  +        #{config:= Config} = Status = mzb_api_server:status(Id),
           #{log_compression:= Compression} = Config,
           ContentEncoding =
               case Compression of
  
positive.code:         Filename = mzb_api_bench:log_file(Config),
          Headers = [{<<"content-type">>, <<"text/plain">>},
                     {<<"content-encoding">>, ContentEncoding}],
          Req2 = cowboy_req:chunked_reply(200, Headers, Req),
          stream_from_file(Filename, Id, Req2),
          {ok, Req2, #{}}
      end);
  
  handle(<<"GET">>, <<"/data">>, Req) ->
      with_bench_id(Req, fun(Id) ->
          #{config:= Config} = mzb_api_server:status(Id),
          #{metrics_compression:= Compression} = Config,
          ContentEncoding =
              case Compression of
  
negative.code: stream_from_file(File, BenchId, Request) ->
      IsFinished =
          fun () ->
              bench_finished(mzb_api_server:status(BenchId))
          end,
      Streamer = fun (Bin) -> cowboy_req:chunk(Bin, Request) end,
      ReadAtOnce = application:get_env(mzbench_api, bench_read_at_once, undefined),
  