Class NewRelic::Agent::NewRelicService
In: lib/new_relic/agent/new_relic_service.rb
lib/new_relic/agent/new_relic_service/json_marshaller.rb
lib/new_relic/agent/new_relic_service/encoders.rb
lib/new_relic/agent/new_relic_service/marshaller.rb
Parent: Object

Methods

Classes and Modules

Module NewRelic::Agent::NewRelicService::Encoders
Class NewRelic::Agent::NewRelicService::CollectorError
Class NewRelic::Agent::NewRelicService::JsonMarshaller
Class NewRelic::Agent::NewRelicService::Marshaller

Constants

PROTOCOL_VERSION = 14   Specifies the version of the agent‘s communication protocol with the NewRelic hosted site.
CONNECTION_ERRORS = [Timeout::Error, EOFError, SystemCallError, SocketError].freeze   These include Errno connection errors, and all indicate that the underlying TCP connection may be in a bad state.

Attributes

agent_id  [RW] 
collector  [R] 
marshaller  [R] 
request_timeout  [RW] 

Public Class methods

Public Instance methods

The collector wants to receive metric data in a format that‘s different from how we store it internally, so this method handles the translation.

The path to the certificate file used to verify the SSL connection if verify_peer is enabled

We do not compress if content is smaller than 64kb. There are problems with bugs in Ruby in some versions that expose us to a risk of segfaults if we compress aggressively.

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.

One session with the service‘s endpoint. In this case the session represents 1 tcp connection which may transmit multiple HTTP requests via keep-alive.

[Validate]