After enabling this module the final IF statement was never evaluating to TRUE so the New Relic functions are never executed.

if (isset($name) && isset($nid)) {
  newrelic_name_transaction($name);
  newrelic_add_custom_parameter('node-id', $nid);
}

The $name and $nid vars are never set at the same time, its one or the other. that IF statement should be split out into two separate ones, or move the function calls higher up into the larger IF/ELSE.

Comments

bschilt’s picture

  • kylebrowning committed 7e05c52 on 7.x-1.x
    Issue #2530836: $name and $nid are never set at the same time
    
kylebrowning’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.