File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -839,6 +839,18 @@ NR_PHP_WRAPPER(nr_laravel_queue_queue_createpayload) {
839
839
}
840
840
NR_PHP_WRAPPER_END
841
841
842
+ NR_PHP_WRAPPER (nr_laravel_horizon_end ) {
843
+ NR_UNUSED_SPECIALFN ;
844
+ (void )wraprec ;
845
+
846
+ nrl_verbosedebug (NRL_TXN , "Laravel Horizon Stop" );
847
+
848
+ nr_php_txn_end (1 , 0 TSRMLS_CC );
849
+
850
+ nrl_verbosedebug (NRL_TXN , "Laravel Horizon Stop" );
851
+ }
852
+ NR_PHP_WRAPPER_END
853
+
842
854
void nr_laravel_queue_enable (TSRMLS_D ) {
843
855
/*
844
856
* Hook the command class that implements Laravel's queue:work command so
@@ -892,6 +904,12 @@ void nr_laravel_queue_enable(TSRMLS_D) {
892
904
nr_laravel_queue_workcommand_handle TSRMLS_CC );
893
905
#endif
894
906
907
+ nr_php_wrap_user_function (NR_PSTR ("Laravel\\Horizon\\Console\\HorizonCommand::handle" ),
908
+ nr_laravel_horizon_end TSRMLS_CC );
909
+
910
+ nr_php_wrap_user_function (NR_PSTR ("Laravel\\Horizon\\Console\\SupervisorCommand::handle" ),
911
+ nr_laravel_horizon_end TSRMLS_CC );
912
+
895
913
/*
896
914
* Hook the method that creates the JSON payloads for queued jobs so that we
897
915
* can add our metadata for CATMQ.
You can’t perform that action at this time.
0 commit comments