vendor/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.4.245/lib/new_relic/agent/new_relic_service.rb
def user_agent
        ruby_description = ''
        # note the trailing space!
        ruby_description << "(ruby #{::RUBY_VERSION} #{::RUBY_PLATFORM}) " if defined?(::RUBY_VERSION) && defined?(::RUBY_PLATFORM)
        zlib_version = ''
        zlib_version << "zlib/#{Zlib.zlib_version}" if defined?(::Zlib) && Zlib.respond_to?(:zlib_version)
        "NewRelic-RubyAgent/#{NewRelic::VERSION::STRING} #{ruby_description}#{zlib_version}"
      end
# Sets the user agent for connections to the server, to
# conform with the HTTP spec and allow for debugging. Includes
# the ruby version and also zlib version if available since
# that may cause corrupt compression if there is a problem.
Sets the user agent for connections to the server, to
conform with the HTTP spec and allow for debugging. Includes
the ruby version and also zlib version if available since
that may cause corrupt compression if there is a problem.
Sets the user agent for connections to the server to conform with the HTTP spec and allow for debugging . Includes the ruby version and also zlib version if available since that may cause corrupt compression if there is a problem .
def user_agent
        ruby_description = ''
        ruby_description << "(ruby #{::RUBY_VERSION} #{::RUBY_PLATFORM}) " if defined?(::RUBY_VERSION) && defined?(::RUBY_PLATFORM)
        zlib_version = ''
        zlib_version << "zlib/#{Zlib.zlib_version}" if defined?(::Zlib) && Zlib.respond_to?(:zlib_version)
        "NewRelic-RubyAgent/#{NewRelic::VERSION::STRING} #{ruby_description}#{zlib_version}"
      end
def user_agent ruby_description = '' ruby_description << "(ruby #{::RUBY_VERSION} #{::RUBY_PLATFORM}) " if defined? ( :: RUBY_VERSION ) && defined? ( :: RUBY_PLATFORM ) zlib_version = '' zlib_version << "zlib/#{Zlib.zlib_version}" if defined? ( :: Zlib ) && Zlib . respond_to? ( :zlib_version ) "NewRelic-RubyAgent/#{NewRelic::VERSION::STRING} #{ruby_description}#{zlib_version}" end
Sets the user agent for connections to the server, to
conform with the HTTP spec and allow for debugging.
Sets the user agent for connections to the server to conform with the HTTP spec and allow for debugging .
# note the trailing space!