# APM RUM JS Does not capture the errors

**URL:** <https://discuss.elastic.co/t/apm-rum-js-does-not-capture-the-errors/365291>\
**Category:** APM\
**Tags:** rum\
**Created:** [August 21, 2024, 2:49pm UTC](https://discuss.elastic.co/t/apm-rum-js-does-not-capture-the-errors/365291 "2024-08-21T14:49:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishorkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kishorkumar/32/132930_2.png) [@kishorkumar](https://discuss.elastic.co/u/kishorkumar)\
**Post date:** [August 21, 2024, 2:49pm UTC](https://discuss.elastic.co/t/apm-rum-js-does-not-capture-the-errors/365291/1 "2024-08-21T14:49:01Z")

</div>

i am using latest version of rum js front end .

I have create simple rum js front end and try to set the labels to the if transaction exist then added the label in try {} and in catch(error) if and set the label only . then i am not aware if i load some time the .

its not capturing that and what type of errors mostly captured by js automatically ?

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [January 13, 2025, 12:51pm UTC](https://discuss.elastic.co/t/apm-rum-js-does-not-capture-the-errors/365291/2 "2025-01-13T12:51:11Z")

</div>

Hi @kishorkumar,

Can you share your RUM initialization code and what technologies you are using in your app (vanilla JS or a framework such as Angular or React for example).

---

<div class="post-metadata">

**Author:** ![kishorkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kishorkumar/32/132930_2.png) [@kishorkumar](https://discuss.elastic.co/u/kishorkumar)\
**Post date:** [January 13, 2025, 1:04pm UTC](https://discuss.elastic.co/t/apm-rum-js-does-not-capture-the-errors/365291/3 "2025-01-13T13:04:32Z")

</div>

> [@Apm rum js and apm node js does not have the same trace.id](https://discuss.elastic.co/t/apm-rum-js-and-apm-node-js-does-not-have-the-same-trace-id/365922):
>
> my docker compose : version: '3.8' services: app: build: context: . dockerfile: Dockerfile restart: always environment: DB\_HOST: database DB\_PORT: 5432 DB\_PASSWORD: postgres DB\_USER: postgres DB\_NAME: postgres networks: - myevershop depends\_on: - database ports: - 3000:3000 #The postgres database: database: image: postgres:16 restart: unless-stopped volumes: - postgres-data:/var/li…

Hello we mostly face the issue in distributed tracing unsuccesful to enabled it yet.
