# Localhost do not work apm

**URL:** <https://discuss.elastic.co/t/localhost-do-not-work-apm/234970>\
**Category:** APM\
**Tags:** rum\
**Created:** [May 29, 2020, 6:32pm UTC](https://discuss.elastic.co/t/localhost-do-not-work-apm/234970 "2020-05-29T18:32:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandreservian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandreservian/32/69302_2.png) [@alexandreservian](https://discuss.elastic.co/u/alexandreservian)\
**Post date:** [May 29, 2020, 6:32pm UTC](https://discuss.elastic.co/t/localhost-do-not-work-apm/234970/1 "2020-05-29T18:32:25Z")

</div>

**Kibana version** :7.6.2

**APM Agent language and version** : elastic/apm-rum@4.7.1

**Browser version** : google chrome 83.0.4103.61

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

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

Hi, I'm trying to use apm-react, but, don't work in versions **@elastic/apm-rum@5.2.0** and \*\*@elastic/apm-rum-react@1.1.1". But I did a example worked using **@elastic/apm-rum@4.7.1** and \*\*@elastic/apm-rum-react@0.3.2". Follow link: [https://codesandbox.io/s/react-router-s40ku?file=/index.js](https://codesandbox.io/s/react-router-s40ku?file=/index.js). But, this example doesn't work in my localhost. So, do I need anysome config to work in my localhost?

---

<div class="post-metadata">

**Author:** ![caue.marcondes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/caue.marcondes/32/61739_2.png) [@caue.marcondes](https://discuss.elastic.co/u/caue.marcondes)\
**Post date:** [June 2, 2020, 2:07pm UTC](https://discuss.elastic.co/t/localhost-do-not-work-apm/234970/2 "2020-06-02T14:07:50Z")

</div>

Hi @alexandreservian, thanks for your message.

Can you tell me what exactly doesn't work? I have tried the codesandbox you sent me pointing an APM agent I have running on the Elastic Cloud, and it seems to be working.

 ![Screenshot 2020-06-02 at 16.05.19](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e18e92fc94c067a6eaf544d485f528e22747a4a8.png)

Don't forget that the RUM agent is by default disabled on APM server, it has to manually enable it. You can see more details [here](https://www.elastic.co/guide/en/apm/server/7.7/configuration-rum.html)

---

<div class="post-metadata">

**Author:** ![alexandreservian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandreservian/32/69302_2.png) [@alexandreservian](https://discuss.elastic.co/u/alexandreservian)\
**Post date:** [June 9, 2020, 1:38pm UTC](https://discuss.elastic.co/t/localhost-do-not-work-apm/234970/3 "2020-06-09T13:38:48Z")

</div>

Hi @caue.marcondes I changed to **transactionSampleRate: 0.1,** and went back to work normal.

---

<div class="post-metadata">

**Author:** ![caue.marcondes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/caue.marcondes/32/61739_2.png) [@caue.marcondes](https://discuss.elastic.co/u/caue.marcondes)\
**Post date:** [June 10, 2020, 7:46am UTC](https://discuss.elastic.co/t/localhost-do-not-work-apm/234970/4 "2020-06-10T07:46:28Z")

</div>

That's great @alexandreservian, thanks for letting me know.

---

<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:** [July 1, 2020, 3:57am UTC](https://discuss.elastic.co/t/localhost-do-not-work-apm/234970/5 "2020-07-01T03:57:08Z")

</div>

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