From b61ac4ce161f9b744eb44e87a5027abb04123dbc Mon Sep 17 00:00:00 2001 From: Andy Zhao Date: Wed, 5 Dec 2018 09:56:44 -0500 Subject: [PATCH] Add guard clause to hotfix some 500s (#1258) --- lib/instrumentation.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/instrumentation.rb b/lib/instrumentation.rb index 6d951c324..a566d50ee 100644 --- a/lib/instrumentation.rb +++ b/lib/instrumentation.rb @@ -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"