Class: EventTracer::DynamoDB::DefaultProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/event_tracer/dynamo_db/default_processor.rb

Instance Method Summary collapse

Instance Method Details

#call(log_type, action:, message:, args:) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/event_tracer/dynamo_db/default_processor.rb', line 4

def call(log_type, action:, message:, args:)
  args.merge(
    timestamp: Time.now.utc.iso8601(6),
    action: action,
    message: message,
    log_type: log_type,
    app: EventTracer::Config.config.app_name
  )
end