@@ -844,6 +844,8 @@ NR_PHP_WRAPPER(nr_laravel_horizon_end) {
844
844
(void )wraprec ;
845
845
846
846
nr_php_txn_end (1 , 0 TSRMLS_CC );
847
+
848
+ nrl_verbosedebug (NRL_TXN , "Ending Laravel Horizon Transaction" );
847
849
}
848
850
NR_PHP_WRAPPER_END
849
851
@@ -879,6 +881,12 @@ void nr_laravel_queue_enable(TSRMLS_D) {
879
881
nr_php_wrap_user_function_before_after_clean (
880
882
NR_PSTR ("Illuminate\\Queue\\SyncQueue::raiseAfterJobEvent" ),
881
883
nr_laravel_queue_worker_raiseAfterJobEvent_before , NULL , NULL );
884
+ nr_php_wrap_user_function_before_after_clean (
885
+ NR_PSTR ("Laravel\\Horizon\\Console\\HorizonCommand::handle" ),
886
+ nr_laravel_horizon_end , NULL , NULL );
887
+ nr_php_wrap_user_function_before_after_clean (
888
+ NR_PSTR ("Laravel\\Horizon\\Console\\SupervisorCommand::handle" ),
889
+ nr_laravel_horizon_end , NULL , NULL );
882
890
883
891
#else
884
892
@@ -900,13 +908,6 @@ void nr_laravel_queue_enable(TSRMLS_D) {
900
908
nr_laravel_queue_workcommand_handle TSRMLS_CC );
901
909
#endif
902
910
903
- nr_php_wrap_user_function_before_after_clean (
904
- NR_PSTR ("Laravel\\Horizon\\Console\\HorizonCommand::handle" ),
905
- nr_laravel_horizon_end , NULL , NULL );
906
-
907
- nr_php_wrap_user_function_before_after_clean (
908
- NR_PSTR ("Laravel\\Horizon\\Console\\SupervisorCommand::handle" ),
909
- nr_laravel_horizon_end , NULL , NULL );
910
911
/*
911
912
* Hook the method that creates the JSON payloads for queued jobs so that we
912
913
* can add our metadata for CATMQ.
0 commit comments