lib/rails/instrumentation/utils.rb
# according to the ActiveSupport::Notifications documentation, exceptions
# will be indicated with the presence of the :exception and :exception_object
# keys. These will be tagged and logged according to the OpenTracing
# specification.
according to the ActiveSupport::Notifications documentation, exceptions
will be indicated with the presence of the :exception and :exception_object
keys. These will be tagged and logged according to the OpenTracing
specification.
according to the ActiveSupport :: Notifications documentation exceptions will be indicated with the presence of the : exception and : exception_object keys . These will be tagged and logged according to the OpenTracing specification .
def tag_error(span, payload)
          span.set_tag('error', true)
          span.log_kv(key: 'error.kind', value: payload[:exception].first)
          span.log_kv(key: 'message', value: payload[:exception].last)
          span.log_kv(key: 'error.object', value: payload[:exception_object])
        end
def tag_error ( span , payload ) span . set_tag ( 'error' , true ) span . log_kv ( key : 'error.kind' , value : payload [ :exception ] . first ) span . log_kv ( key : 'message' , value : payload [ :exception ] . last ) span . log_kv ( key : 'error.object' , value : payload [ :exception_object ] ) end
according to the ActiveSupport::Notifications documentation, exceptions
will be indicated with the presence of the :exception and :exception_object
keys.
according to the ActiveSupport :: Notifications documentation exceptions will be indicated with the presence of the : exception and : exception_object keys .
span
<not_specific>
payload
<not_specific>