Skip to content

Commit efb1f2d

Browse files
committed
record frankenphp worker bootstrap as background transaction
1 parent af6084d commit efb1f2d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

agent/php_frankenphp.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ void nr_php_frankenphp_handle_request(INTERNAL_FUNCTION_PARAMETERS) {
3838
nruserfn_t* wr = NULL;
3939

4040
// Always end current transaction started when worker was started
41-
// Maybe store package data?
42-
nr_php_txn_end(1, 0);
41+
nr_txn_set_path("frankenphp_handle_request", NRPRG(txn), "frankenphp/worker",
42+
NR_PATH_TYPE_CUSTOM, NR_OK_TO_OVERWRITE);
43+
nr_txn_set_as_background_job(NRPRG(txn), "frankenphp worker");
44+
nr_php_txn_end(0, 0);
4345

4446
zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "z",
4547
&function);

0 commit comments

Comments
 (0)