lib/logjam_agent/request.rb in logjam_agent-0.14.0 vs lib/logjam_agent/request.rb in logjam_agent-0.15.0
- old
+ new
@@ -15,9 +15,12 @@
@forwarder = Forwarders.get(app, env)
@lines = []
@uuid = LogjamAgent.generate_uuid
@fields = initial_fields.merge(:request_id => @uuid, :host => LogjamAgent.hostname,
:process_id => Process.pid, :lines => @lines)
+ unless (revision = LogjamAgent.application_revision).blank?
+ @fields[:revision] = revision
+ end
if start_time = @fields.delete(:start_time)
self.start_time = start_time
end
@mutex = Mutex.new
@ignored = false