lib/logjam_agent/request.rb in logjam_agent-0.8.2 vs lib/logjam_agent/request.rb in logjam_agent-0.9.0
- old
+ new
@@ -11,10 +11,10 @@
def initialize(app, env, initial_fields)
@app = app
@env = env
@forwarder = Forwarders.get(app, env)
@lines = []
- @uuid = UUID4R::uuid(1).gsub('-','')
+ @uuid = LogjamAgent.generate_uuid
@fields = initial_fields.merge(:request_id => @uuid, :host => LogjamAgent.hostname, :process_id => Process.pid, :lines => @lines)
@mutex = Mutex.new
end
def id