# Automatic instrumentation of function calls

**URL:** <https://discuss.elastic.co/t/automatic-instrumentation-of-function-calls/272707>\
**Category:** APM\
**Tags:** php\
**Created:** [May 11, 2021, 2:00pm UTC](https://discuss.elastic.co/t/automatic-instrumentation-of-function-calls/272707 "2021-05-11T14:00:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lingwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lingwood/32/88601_2.png) [@lingwood](https://discuss.elastic.co/u/lingwood)\
**Post date:** [May 11, 2021, 2:00pm UTC](https://discuss.elastic.co/t/automatic-instrumentation-of-function-calls/272707/1 "2021-05-11T14:00:04Z")

</div>

**Kibana version** : 7.12.1

**Elasticsearch version** : 7.12.1

**APM Server version** : 7.12.1

**APM Agent language and version** : php agent 1.01. Php 7.3.27

**Browser version** : Edge 90.0.818.56

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**: deb from github

**Fresh install or upgraded from other version?** Fresh

**Is there anything special in your setup?** Deployed by eck to k8s cluster, apm server behind nginx. Instrumented application is running in mod\_php in apache.

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:  
I was expecting there to be automatic spans created for "significant" function calls but this doesn't seem to be the case. I am getting spans created for curl so spans themselves are working. I'm also not seeing spans for db queries but this is using [PHP: PostgreSQL - Manual](https://www.php.net/manual/en/book.pgsql.php) which is not supported yet.  
Transactions are created as expected. Just no spans for most of them (unless curl does something).

The docs are dance around this a bit, am I expecting too much at this stage?  
FWIW I am instrumenting moodle we are currently using new-relic for this information.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 1, 2021, 10:00am UTC](https://discuss.elastic.co/t/automatic-instrumentation-of-function-calls/272707/2 "2021-06-01T10:00:42Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
