ruby_server_timing icon indicating copy to clipboard operation
ruby_server_timing copied to clipboard

External requests made without Scout account configured

Open abraham opened this issue 7 years ago • 2 comments

Without a Scout account, external requests are still made. It would be better if no requests were made by default. This makes it so I can't use this gem on a number of projects with more stringent security policies.

screen shot 2018-03-03 at 15 04 54

abraham avatar Mar 03 '18 21:03 abraham

Good catch. We'll investigate.

/cc @cschneid - feels like a "passive" mode would help here. I can't recall if setting monitor: false still runs instrumentation, but just throws the output away.

Ideally, it'd be nice to not require a scout_apm.yml config file and run in passive mode so server_timing is more plug-and-play.

itsderek23 avatar Mar 03 '18 21:03 itsderek23

Setting monitor: false no longer reports timing in the request header.

We don't use Scout, however were interested in this gem in development environments. To prevent the requests back to Scout, we just monkey patched ScoutApm::Reporter:

module ScoutApm
  class Reporter
    def report(_payload, _headers = {})
      # Do nothing
    end
  end
end

Request information still works, but no external requests to Scout.

daveallie avatar Oct 16 '18 23:10 daveallie