lib/instana/agent.rb in instana-1.9.0.sillyrabbit vs lib/instana/agent.rb in instana-1.9.0

- old
+ new

@@ -288,10 +288,10 @@ path = "com.instana.plugin.ruby/traces.#{@process[:report_pid]}" uri = URI.parse("http://#{@discovered[:agent_host]}:#{@discovered[:agent_port]}/#{path}") req = Net::HTTP::Post.new(uri) - req.body = Oj.dump(spans) + req.body = Oj.dump(spans, :omit_nil => true) response = make_host_agent_request(req) if response last_trace_response = response.code.to_i