demarches-normaliennes/config/initializers/logstasher.rb
2018-08-07 16:26:44 +02:00

9 lines
210 B
Ruby

if LogStasher.enabled
LogStasher.add_custom_fields do |fields|
fields[:type] = "tps"
end
LogStasher.add_custom_fields_to_request_context do |fields|
fields.merge!(session_info_payload)
end
end