Method: NewRelic::Agent::NewRelicService#http_connection
- Defined in:
- lib/new_relic/agent/new_relic_service.rb
permalink #http_connection ⇒ Object
Return a Net::HTTP connection object to make a call to the collector. We’ll reuse the same handle for cases where we’re using keep-alive, or otherwise create a new one.
303 304 305 306 307 308 309 |
# File 'lib/new_relic/agent/new_relic_service.rb', line 303 def http_connection if @in_session establish_shared_connection else create_http_connection end end |