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
fix instrumented function metric
  • Loading branch information
ZNeumann authored and lavarou committed Nov 6, 2024
commit d596581ce190722c814b4c82d89606eae1ed045a
13 changes: 8 additions & 5 deletions agent/php_observer.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,15 @@ 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 :
nr_php_observer_fcall_begin_instrumented;
(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 :
wraprec->create_metric ? nr_php_observer_fcall_end_create_metric:
nr_php_observer_fcall_end;
(zend_observer_fcall_end_handler)wraprec->special_instrumentation :
wraprec->create_metric ?
nr_php_observer_fcall_end_create_metric :
nr_php_observer_fcall_end;
return handlers;
}
#endif
Expand Down