Skip to content

Commit f5252c3

Browse files
ZNeumannlavarou
authored andcommitted
InstrumentedFunction supp metric on first call only
1 parent 9c04484 commit f5252c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

agent/php_observer.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,18 @@ static zend_observer_fcall_handlers nr_php_fcall_register_handlers(
115115
}
116116
}
117117
handlers.begin = wraprec->special_instrumentation_before ?
118-
(zend_observer_fcall_begin_handler)wraprec->special_instrumentation_before :
118+
(zend_observer_fcall_begin_handler) wraprec->special_instrumentation_before :
119119
wraprec->is_transient ?
120120
nr_php_observer_fcall_begin :
121121
nr_php_observer_fcall_begin_instrumented;
122122
handlers.end = wraprec->special_instrumentation ?
123-
(zend_observer_fcall_end_handler)wraprec->special_instrumentation :
123+
(zend_observer_fcall_end_handler) wraprec->special_instrumentation :
124124
wraprec->is_exception_handler ?
125125
nr_php_observer_fcall_end_exception_handler :
126126
wraprec->create_metric ?
127127
nr_php_observer_fcall_end_create_metric :
128128
nr_php_observer_fcall_end;
129+
nr_txn_force_single_count(NRPRG(txn), wraprec->supportability_metric);
129130
return handlers;
130131
}
131132

0 commit comments

Comments
 (0)