lib/fluent/plugin/out_sentry.rb in ach-fluent-plugin-sentry-0.0.17 vs lib/fluent/plugin/out_sentry.rb in ach-fluent-plugin-sentry-0.0.18

- old
+ new

@@ -78,9 +78,9 @@ ) event.timestamp = record['timestamp'] || Time.at(time).utc.strftime('%Y-%m-%dT%H:%M:%S') event.level = record['level'] || @default_level event.environment = record['clustername'] || @default_environment event.tags = event.tags.merge({ :tag => tag }.merge(record['kubernetes'] || {})) - event.contexts = event.contexts.merge(record['fields']) + event.contexts[:Fields] = record['fields'] || {} @client.send_event(event) end end