Skip to content

Commit

Permalink
fix: drupal http segments
Browse files Browse the repository at this point in the history
  • Loading branch information
ZNeumann committed Nov 16, 2023
1 parent a1d0561 commit 2920302
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion agent/fw_drupal.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,13 @@ NR_PHP_WRAPPER(nr_drupal_http_request_before) {
* checking a counter.
*/
if (1 == NRPRG(drupal_http_request_depth)) {
/*
* Parent this segment to the txn root so as to not interfere with
* the OAPI default segment stack, which is used to dispatch to the
* after function properly
*/
NRPRG(drupal_http_request_segment)
= nr_segment_start(NRPRG(txn), NULL, NULL);
= nr_segment_start(NRPRG(txn), NRTXN(segment_root), NULL);
}
}
NR_PHP_WRAPPER_END
Expand Down

0 comments on commit 2920302

Please sign in to comment.