| 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 |
| 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. |
| agent_id | [RW] | |
| collector | [R] | |
| marshaller | [R] | |
| request_timeout | [RW] |
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.
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.