File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -839,6 +839,14 @@ 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
+ nr_php_txn_end (1 , 0 TSRMLS_CC );
847
+ }
848
+ NR_PHP_WRAPPER_END
849
+
842
850
void nr_laravel_queue_enable (TSRMLS_D ) {
843
851
/*
844
852
* Hook the command class that implements Laravel's queue:work command so
@@ -892,6 +900,13 @@ void nr_laravel_queue_enable(TSRMLS_D) {
892
900
nr_laravel_queue_workcommand_handle TSRMLS_CC );
893
901
#endif
894
902
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 );
895
910
/*
896
911
* Hook the method that creates the JSON payloads for queued jobs so that we
897
912
* can add our metadata for CATMQ.
You can’t perform that action at this time.
0 commit comments