# APM - NodeJS on Strapi Application

**URL:** <https://discuss.elastic.co/t/apm-nodejs-on-strapi-application/312223>\
**Category:** APM\
**Tags:** nodejs\
**Created:** [August 16, 2022, 9:15pm UTC](https://discuss.elastic.co/t/apm-nodejs-on-strapi-application/312223 "2022-08-16T21:15:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OscarFilho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oscarfilho/32/109740_2.png) [@OscarFilho](https://discuss.elastic.co/u/OscarFilho)\
**Post date:** [August 16, 2022, 9:15pm UTC](https://discuss.elastic.co/t/apm-nodejs-on-strapi-application/312223/1 "2022-08-16T21:15:42Z")

</div>

Hello...  
Anyone here knows how instrument Strapi application with Nodejs APM?

I realy dont know where i have to put the calling methods of apm on this application type...

tks...

---

<div class="post-metadata">

**Author:** ![alanstorm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alanstorm/32/77134_2.png) [@alanstorm](https://discuss.elastic.co/u/alanstorm)\
**Post date:** [August 22, 2022, 6:18pm UTC](https://discuss.elastic.co/t/apm-nodejs-on-strapi-application/312223/2 "2022-08-22T18:18:30Z")

</div>

Hey @OscarFilho, nice to meet you and thanks for dropping by!

The Node.js agent doesn't have _explicit_ support for Strapi -- however, presuming Strapi uses Node's standard HTTP(S) methods under the hood you should get basic transactions, and then can use [the API](https://www.elastic.co/guide/en/apm/agent/nodejs/master/agent-api.html#apm-set-transaction-name) to name transactions, create spans, etc. if you need something more specific.

I took a quick look at strapi's bootstrap project and it looks like they load a lot of code before giving you a chance to add anything of your own. In situations like that your best bet is to [use the `--require` option](https://www.elastic.co/guide/en/apm/agent/nodejs/master/starting-the-agent.html#start-option-node-require-opt) to load in the agent when starting node [and then use env. variables to configure the agent](https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuration.html).

Hope that helps! Let us know how it goes!

---

<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:** [September 12, 2022, 2:19pm UTC](https://discuss.elastic.co/t/apm-nodejs-on-strapi-application/312223/3 "2022-09-12T14:19:29Z")

</div>

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