Add guard clause to hotfix some 500s (#1258)

This commit is contained in:
Andy Zhao 2018-12-05 09:56:44 -05:00 committed by Ben Halpern
parent 37fc82c409
commit b61ac4ce16

View file

@ -12,6 +12,7 @@ module Instrumentation
end
def append_to_honeycomb(request, controller_name)
return if honeycomb_metadata.nil?
honeycomb_metadata["trace.trace_id"] = request.request_id
honeycomb_metadata["trace.span_id"] = request.request_id
honeycomb_metadata[:service_name] = "rails"