# Native methods instrumentation (globally available methods)

**URL:** <https://discuss.elastic.co/t/native-methods-instrumentation-globally-available-methods/229757>\
**Category:** APM\
**Tags:** nodejs\
**Created:** [April 25, 2020, 11:20am UTC](https://discuss.elastic.co/t/native-methods-instrumentation-globally-available-methods/229757 "2020-04-25T11:20:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddhant94](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@siddhant94](https://discuss.elastic.co/u/siddhant94)\
**Post date:** [April 25, 2020, 11:20am UTC](https://discuss.elastic.co/t/native-methods-instrumentation-globally-available-methods/229757/1 "2020-04-25T11:20:50Z")

</div>

**APM Agent language and version** :  
APM version 1.0.6, language - nodeJS

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:  
I would like to instrument native javascript methods in my node Js app. Is there any way the agent allows to do so or if not how can I extend the agent for custom instrumentation in way that is consistent with how a module gets patched currently.  
For reference -

> <https://github.com/elastic/apm-agent-nodejs/issues/1730>
>
> Is your feature request related to a problem? Please describe.
> I am unable to add instrumentation for Global Objects in the agent...

  

> <https://github.com/elastic/apm-agent-nodejs/issues/312>
>
> Currently for a module to be automatically instrumented by this agent, there needs to be both a js file with the...

---

<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:** [May 16, 2020, 7:20am UTC](https://discuss.elastic.co/t/native-methods-instrumentation-globally-available-methods/229757/2 "2020-05-16T07:20:56Z")

</div>

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