You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extension logs the function/method name, the timings and the arguments in the metadata, it would be great if you could add the filename that executed the function/method and a backtrace showing the filename of the original caller.
I've tried to add the filename by adding another variable in the scoutapm_stack_frame and using the zend_get_executed_filename() inside the record_observed_stack_frame() like this
This seems to work alright, however, I can only see the filename executing the observed function.
In cases where for example I have a PDO database class file and my "main" file includes and uses the database file. In the "main" file I create my SQL query and I use the database class to run it. The current implementation shows the database class filename where I'd like to also see the filename of the original caller, hence the need of the backtrace.
I've tried to use the prev_execute_data of zend_execute_data to fetch the previous filename but I'm way out of my league, I don't know anything about PHP internals and the only thing I managed to create is a segfault :)
The text was updated successfully, but these errors were encountered:
The extension logs the function/method name, the timings and the arguments in the metadata, it would be great if you could add the filename that executed the function/method and a backtrace showing the filename of the original caller.
I've tried to add the filename by adding another variable in the
scoutapm_stack_frame
and using thezend_get_executed_filename()
inside therecord_observed_stack_frame()
like thisThis seems to work alright, however, I can only see the filename executing the observed function.
In cases where for example I have a PDO database class file and my "main" file includes and uses the database file. In the "main" file I create my SQL query and I use the database class to run it. The current implementation shows the database class filename where I'd like to also see the filename of the original caller, hence the need of the backtrace.
I've tried to use the
prev_execute_data
ofzend_execute_data
to fetch the previous filename but I'm way out of my league, I don't know anything about PHP internals and the only thing I managed to create is a segfault :)The text was updated successfully, but these errors were encountered: