user_agent_header

in lib/elastic/transport/transport/http/faraday.rb [86:97]


          def user_agent_header(client)
            @user_agent ||= begin
                              meta = ["RUBY_VERSION: #{RUBY_VERSION}"]
                              if RbConfig::CONFIG && RbConfig::CONFIG['host_os']
                                meta << "#{RbConfig::CONFIG['host_os'].split('_').first[/[a-z]+/i].downcase} " \
                                        "#{RbConfig::CONFIG['target_cpu']}"
                              end
                              meta << client.headers[USER_AGENT_STR]
                              "elastic-transport-ruby/#{VERSION} (#{meta.join('; ')})"
                            end
          end