lib/hyperdx/ruby.rb in hyperdx-ruby-0.1.0 vs lib/hyperdx/ruby.rb in hyperdx-ruby-0.1.1

- old
+ new

@@ -34,10 +34,10 @@ return end ip = opts.key?(:ip) ? "&ip=#{opts[:ip]}" : "" mac = opts.key?(:mac) ? "&mac=#{opts[:mac]}" : "" - url = "#{endpoint}?hostname=#{hostname}#{mac}#{ip}" + url = "#{endpoint}?hostname=#{hostname}#{mac}#{ip}&hdx_platform=ruby" uri = URI(url) request = Net::HTTP::Post.new(uri.request_uri, "Content-Type" => "application/json") request['Authorization'] = "Bearer #{key}" request[:'user-agent'] = opts[:'user-agent'] || "ruby/#{Hyperdx::VERSION}"