# File lib/new_relic/agent/transaction_error_primitive.rb, line 39
      def intrinsic_attributes_for noticed_error, payload
        attrs = {
          TYPE_KEY => SAMPLE_TYPE,
          ERROR_CLASS_KEY => noticed_error.exception_class_name,
          ERROR_MESSAGE_KEY => noticed_error.message,
          TIMESTAMP_KEY => noticed_error.timestamp.to_f
        }

        attrs[PORT_KEY] = noticed_error.request_port if noticed_error.request_port

        if payload
          attrs[NAME_KEY] = payload[:name]
          attrs[DURATION_KEY] = payload[:duration]
          append_synthetics payload, attrs
          append_cat payload, attrs
          PayloadMetricMapping.append_mapped_metrics payload[:metrics], attrs
        end

        attrs
      end