File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -839,6 +839,11 @@ NR_PHP_WRAPPER(nr_laravel_queue_queue_createpayload) {
839
839
}
840
840
NR_PHP_WRAPPER_END
841
841
842
+ /*
843
+ * Ensure that the transaction is properly stopped when Laravel Horizon is being
844
+ * used by wrapping the handle method of the HorizonCommand and
845
+ * SupervisorCommand class.
846
+ */
842
847
NR_PHP_WRAPPER (nr_laravel_horizon_end ) {
843
848
NR_UNUSED_SPECIALFN ;
844
849
(void )wraprec ;
@@ -881,6 +886,13 @@ void nr_laravel_queue_enable(TSRMLS_D) {
881
886
nr_php_wrap_user_function_before_after_clean (
882
887
NR_PSTR ("Illuminate\\Queue\\SyncQueue::raiseAfterJobEvent" ),
883
888
nr_laravel_queue_worker_raiseAfterJobEvent_before , NULL , NULL );
889
+
890
+ /*
891
+ * The following functions have been added to ensure that the transaction
892
+ * is properly stopped when Laravel Horizon is being used. This is
893
+ * accomplished by wrapping the handle method of the HorizonCommand class and
894
+ * the SupervisorCommand class.
895
+ */
884
896
nr_php_wrap_user_function_before_after_clean (
885
897
NR_PSTR ("Laravel\\Horizon\\Console\\HorizonCommand::handle" ),
886
898
nr_laravel_horizon_end , NULL , NULL );
You can’t perform that action at this time.
0 commit comments