Skip to content

Commit d642ad0

Browse files
committed
Add logging of variant for navigation test
This will enable us to determine which variant a log entry refers to. This will help with allowing us to measure performance and track errors.
1 parent 44f6c50 commit d642ad0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/initializers/logstasher.rb

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if Object.const_defined?('LogStasher') && LogStasher.enabled
2+
LogStasher.add_custom_fields do |fields|
3+
fields[:govuk_content_pages_variant] = request.headers['GOVUK-ABTest-ContentPagesNav']
4+
end
5+
end

0 commit comments

Comments
 (0)