Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
InstrumentedFunction supp metric on first call only
  • Loading branch information
ZNeumann authored and lavarou committed Nov 6, 2024
commit 1a9b95381265d2b5c39e3df290dd4c2211cd10c0
5 changes: 3 additions & 2 deletions agent/php_observer.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,18 @@ static zend_observer_fcall_handlers nr_php_fcall_register_handlers(
}
}
handlers.begin = wraprec->special_instrumentation_before ?
(zend_observer_fcall_begin_handler)wraprec->special_instrumentation_before :
(zend_observer_fcall_begin_handler) wraprec->special_instrumentation_before :
wraprec->is_transient ?
nr_php_observer_fcall_begin :
nr_php_observer_fcall_begin_instrumented;
handlers.end = wraprec->special_instrumentation ?
(zend_observer_fcall_end_handler)wraprec->special_instrumentation :
(zend_observer_fcall_end_handler) wraprec->special_instrumentation :
wraprec->is_exception_handler ?
nr_php_observer_fcall_end_exception_handler :
wraprec->create_metric ?
nr_php_observer_fcall_end_create_metric :
nr_php_observer_fcall_end;
nr_txn_force_single_count(NRPRG(txn), wraprec->supportability_metric);
return handlers;
}

Expand Down