Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/event_tracer/dynamo_db/default_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ module EventTracer
module DynamoDB
class DefaultProcessor
def call(log_type, action:, message:, args:)
timestamp = Time.now.utc.iso8601(6)

args.merge(
'timestamp' => Time.now.utc.iso8601(6),
'timestamp' => timestamp,
'action' => action,
'action_timestamp' => "#{action}##{timestamp}",
Comment thread
wilson-ascenda marked this conversation as resolved.
'message' => message,
'log_type' => log_type.to_s,
'app' => EventTracer::Config.config.app_name
Expand Down
2 changes: 1 addition & 1 deletion lib/event_tracer/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module EventTracer
VERSION = '0.6.4'.freeze
VERSION = '0.6.5'.freeze
end
1 change: 1 addition & 0 deletions spec/event_tracer/dynamo_db/logger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
[{
'message' => 'Some message',
'action' => 'Testing',
'action_timestamp' => 'Testing#2020-02-09T12:34:56.000000Z',
'log_type' => 'info',
'timestamp' => '2020-02-09T12:34:56.000000Z',
'app' => EventTracer::Config.config.app_name
Expand Down