Method: NewRelic::Agent::NewRelicService#prep_marshaller

Defined in:
lib/new_relic/agent/new_relic_service.rb

#prep_marshallerObject

[View source]

69
70
71
72
73
74
75
76
77
78
# File 'lib/new_relic/agent/new_relic_service.rb', line 69

def prep_marshaller
  Agent.config.register_callback(:marshaller) do |marshaller|
    if marshaller != 'json'
      ::NewRelic::Agent.logger.warn("Non-JSON marshaller '#{marshaller}' requested but not supported, using " \
        'JSON marshaller instead. pruby marshalling has been removed as of version 3.14.0.')
    end

    @marshaller = JsonMarshaller.new
  end
end