demarches-normaliennes/config/initializers/logstasher.rb

10 lines
210 B
Ruby
Raw Normal View History

if LogStasher.enabled
LogStasher.add_custom_fields do |fields|
2017-08-28 11:18:38 +02:00
fields[:type] = "tps"
end
2018-01-17 14:40:31 +01:00
2018-08-07 16:13:40 +02:00
LogStasher.add_custom_fields_to_request_context do |fields|
fields.merge!(session_info_payload)
2018-01-17 14:40:31 +01:00
end
end