# \#nodejs

**URL:** https://discuss.elastic.co/tag/nodejs/33.md

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

---

## [Enable Response Body in APM securely?](https://discuss.elastic.co/t/enable-response-body-in-apm-securely/388627)

<div class="topic-metadata">

**Author:** [@kkumar123](https://discuss.elastic.co/u/kkumar123)\
**Replies:** 3\
**Last updated:** [August 3, 2026, 7:24pm UTC](https://discuss.elastic.co/t/enable-response-body-in-apm-securely/388627 "2026-08-03T19:24:38Z")

</div>

Looking for enabling the APM Response body from Kibana or Observability UI instead of code if not possible then how we can do it code but securely. Kibana version: 9.3.4 Elasticsearch version: 9.3.4 APM Server versio…

---

## [ILM policy for indices from APM server](https://discuss.elastic.co/t/ilm-policy-for-indices-from-apm-server/384133)

<div class="topic-metadata">

**Author:** [@Narek\_Martirosyan](https://discuss.elastic.co/u/Narek_Martirosyan)\
**Replies:** 2\
**Last updated:** [December 19, 2025, 7:48am UTC](https://discuss.elastic.co/t/ilm-policy-for-indices-from-apm-server/384133 "2025-12-19T07:48:45Z")

</div>

Hi, I’m running Elasticsearch 9.0.3 managed by ECK on AKS, and I’m seeing persistent high JVM heap usage on my warm nodes. Cluster topology 3 × master nodes 2 × hot data nodes 2 × warm data nodes Persistent…

---

## [Traces using opentelemetry SDK to EDOT collector does not show the url path](https://discuss.elastic.co/t/traces-using-opentelemetry-sdk-to-edot-collector-does-not-show-the-url-path/381541)

<div class="topic-metadata">

**Author:** [@mikhatanu](https://discuss.elastic.co/u/mikhatanu)\
**Replies:** 1\
**Last updated:** [September 9, 2025, 10:03pm UTC](https://discuss.elastic.co/t/traces-using-opentelemetry-sdk-to-edot-collector-does-not-show-the-url-path/381541 "2025-09-09T22:03:18Z")

</div>

I’m trying opentelemetry in elasticstack, currently i’m using this: OpenTelemetry node js SDK → EDOT collector → Elasticsearch For sdk, i use autoinstrumentation using opentelemetry operator. For EDOT collector, I used …

---

## [ApmServer stopped infusing kubernetes.pod.name in output stream](https://discuss.elastic.co/t/apmserver-stopped-infusing-kubernetes-pod-name-in-output-stream/380252)

<div class="topic-metadata">

**Author:** [@VVK](https://discuss.elastic.co/u/VVK)\
**Replies:** 1\
**Last updated:** [July 18, 2025, 4:00pm UTC](https://discuss.elastic.co/t/apmserver-stopped-infusing-kubernetes-pod-name-in-output-stream/380252 "2025-07-18T16:00:14Z")

</div>

Kibana version: 8.17.6 Elasticsearch version: 8.17.2 APM Server version: 8.16.2 APM Agent language and version: Java/ Nodejs. Java version: apm-agent-nodejs/4.4.1 / ; apm-agent-nodejs/3.52.2 apm-agent-java/1.38.…

---

## [Next.js 15 app gives "GET unknown route" for transaction name](https://discuss.elastic.co/t/next-js-15-app-gives-get-unknown-route-for-transaction-name/379020)

<div class="topic-metadata">

**Author:** [@azach-ewtn](https://discuss.elastic.co/u/azach-ewtn)\
**Replies:** 4\
**Last updated:** [June 27, 2025, 4:00am UTC](https://discuss.elastic.co/t/next-js-15-app-gives-get-unknown-route-for-transaction-name/379020 "2025-06-27T04:00:10Z")

</div>

I am building API endpoints using Next.js API Routes (Next.js v15.x). I've instrumented my app using elastic-apm-node as described in the Getting started with Next.js guide. When invoking my API endpoint, a trace shows…

---

## [Why Are Index Rollover Sequence Numbers Skipping in APM Data Stream?](https://discuss.elastic.co/t/why-are-index-rollover-sequence-numbers-skipping-in-apm-data-stream/379473)

<div class="topic-metadata">

**Author:** [@Narek\_Martirosyan](https://discuss.elastic.co/u/Narek_Martirosyan)\
**Replies:** 2\
**Last updated:** [June 26, 2025, 7:17am UTC](https://discuss.elastic.co/t/why-are-index-rollover-sequence-numbers-skipping-in-apm-data-stream/379473 "2025-06-26T07:17:35Z")

</div>

Kibana version: 8.9.0 Elasticsearch version: 8.9.0 APM Server version: 8.9.0 APM Agent language and version: Node.js Browser version: Chrome 137.0.0.0 Original install method: Deployed via ECK on AKS Fresh install …

---

## [Configuring HTTP agent properties for elastic-apm-node](https://discuss.elastic.co/t/configuring-http-agent-properties-for-elastic-apm-node/378777)

<div class="topic-metadata">

**Author:** [@kfancy](https://discuss.elastic.co/u/kfancy)\
**Replies:** 1\
**Last updated:** [June 4, 2025, 6:55pm UTC](https://discuss.elastic.co/t/configuring-http-agent-properties-for-elastic-apm-node/378777 "2025-06-04T18:55:51Z")

</div>

We're trying to figure out how to configure the HTTP agent when we start up an APM client in nodeJS (v20 nodeJS, 4.12.0 elastic-apm-node). We're seeing behaviour where the APM client will sometimes freeze the entire nod…

---

## [Observability field composition of Stream Logs message](https://discuss.elastic.co/t/observability-field-composition-of-stream-logs-message/378048)

<div class="topic-metadata">

**Author:** [@b790718](https://discuss.elastic.co/u/b790718)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 3:03pm UTC](https://discuss.elastic.co/t/observability-field-composition-of-stream-logs-message/378048 "2025-05-12T15:03:35Z")

</div>

Elasticsearch: v8.11.0 Kibana: v8.11.0 Filebeat: v8.11.0 APM Agent: nodejs v8.10.0 I use winston logger with ecs-winston-format. I am so confused about what field composition of Stream Message is ? When I set ecsFo…

---

## [Error while using Elastic node APM with database transactions](https://discuss.elastic.co/t/error-while-using-elastic-node-apm-with-database-transactions/376519)

<div class="topic-metadata">

**Author:** [@David\_Souza](https://discuss.elastic.co/u/David_Souza)\
**Replies:** 2\
**Last updated:** [April 22, 2025, 3:55pm UTC](https://discuss.elastic.co/t/error-while-using-elastic-node-apm-with-database-transactions/376519 "2025-04-22T15:55:05Z")

</div>

Description: I am using elastic-apm-node to instrument a nestjs API it works perfectly, some weeks ago I needed to added database transactions using sequelize and I got the following error I tested and If I remove data…

---

## [OpenTelemetry: set user context](https://discuss.elastic.co/t/opentelemetry-set-user-context/367119)

<div class="topic-metadata">

**Author:** [@skistar002](https://discuss.elastic.co/u/skistar002)\
**Replies:** 5\
**Last updated:** [April 19, 2025, 11:09am UTC](https://discuss.elastic.co/t/opentelemetry-set-user-context/367119 "2025-04-19T11:09:16Z")

</div>

I'm looking for guidance on how to have the user context populated in APM when sending traces through OpenTelemetry (Javascript @opentelemetry/api package). Setting a span attribute of user.name results in the infamous l…

---

## [Add Transaction.name in Spans / Merge Doucment of span and transaction](https://discuss.elastic.co/t/add-transaction-name-in-spans-merge-doucment-of-span-and-transaction/376172)

<div class="topic-metadata">

**Author:** [@kishorkumar](https://discuss.elastic.co/u/kishorkumar)\
**Replies:** 20\
**Last updated:** [April 16, 2025, 8:50pm UTC](https://discuss.elastic.co/t/add-transaction-name-in-spans-merge-doucment-of-span-and-transaction/376172 "2025-04-16T20:50:08Z")

</div>

Hello Elastic Observability \> APM engineers, I have multiple agents ingerated with multiple type of applications using multiple methods like nodes js agents, python, java and some of the application are ingerated using…

---

## [APM is not converting JS stacks to Type script stacks](https://discuss.elastic.co/t/apm-is-not-converting-js-stacks-to-type-script-stacks/375220)

<div class="topic-metadata">

**Author:** [@Ivan\_Mlinaric](https://discuss.elastic.co/u/Ivan_Mlinaric)\
**Replies:** 0\
**Last updated:** [February 28, 2025, 2:21pm UTC](https://discuss.elastic.co/t/apm-is-not-converting-js-stacks-to-type-script-stacks/375220 "2025-02-28T14:21:30Z")

</div>

Hello, We have recently migrated our code base to type script. We have set it in a way that all the tools we use during runtime and if we manually print stack traces of errors on running environments, those are correctl…

---

## [Split traces to separate indices based on service name](https://discuss.elastic.co/t/split-traces-to-separate-indices-based-on-service-name/373942)

<div class="topic-metadata">

**Author:** [@Ali\_Osman](https://discuss.elastic.co/u/Ali_Osman)\
**Replies:** 6\
**Last updated:** [February 1, 2025, 4:26pm UTC](https://discuss.elastic.co/t/split-traces-to-separate-indices-based-on-service-name/373942 "2025-02-01T16:26:44Z")

</div>

Kibana version: 8.17.1 Elasticsearch version: 8.17.1 APM Server version: 8.17.1 APM Agent language and version: NodeJS - 4.11.0 Original install method (e.g. download page, yum, deb, from source, etc.) and version: D…

---

## [APM transaction.custom](https://discuss.elastic.co/t/apm-transaction-custom/373600)

<div class="topic-metadata">

**Author:** [@spaulovich](https://discuss.elastic.co/u/spaulovich)\
**Replies:** 2\
**Last updated:** [January 24, 2025, 6:40pm UTC](https://discuss.elastic.co/t/apm-transaction-custom/373600 "2025-01-24T18:40:46Z")

</div>

I've seen that using OTEL stores transaction.custom as a flattened field, where using an elastic agent stores the content to unmapped fields. I'm using elastic agents and would like to store transaction.custom as a flat…

---

## [Azure Functions nodejs not showing transaction samples](https://discuss.elastic.co/t/azure-functions-nodejs-not-showing-transaction-samples/364373)

<div class="topic-metadata">

**Author:** [@shevkaboss](https://discuss.elastic.co/u/shevkaboss)\
**Replies:** 11\
**Last updated:** [January 21, 2025, 9:22am UTC](https://discuss.elastic.co/t/azure-functions-nodejs-not-showing-transaction-samples/364373 "2025-01-21T09:22:02Z")

</div>

Good day, I'm new to ELK stack and trying to setup APM transactions on my BE application. We are using serverless infrastructure with Azure Functions and nodejs. I cannot see any transaction samples in APM view: St…

---

## [APM Server transport error: error fetching APM Server version: write EPROTO](https://discuss.elastic.co/t/apm-server-transport-error-error-fetching-apm-server-version-write-eproto/372264)

<div class="topic-metadata">

**Author:** [@drms](https://discuss.elastic.co/u/drms)\
**Replies:** 0\
**Last updated:** [December 20, 2024, 9:22am UTC](https://discuss.elastic.co/t/apm-server-transport-error-error-fetching-apm-server-version-write-eproto/372264 "2024-12-20T09:22:32Z")

</div>

my server first starts up and initializes the APM service. It doesn't actually cause any issues from what I can tell and the APM starts up fine, but I'd love to understand why it's throwing this error and what I can do t…

---

## [Node.js not showing as a service in lab 3.3](https://discuss.elastic.co/t/node-js-not-showing-as-a-service-in-lab-3-3/370244)

<div class="topic-metadata">

**Author:** [@pdorcas](https://discuss.elastic.co/u/pdorcas)\
**Replies:** 3\
**Last updated:** [November 9, 2024, 10:17pm UTC](https://discuss.elastic.co/t/node-js-not-showing-as-a-service-in-lab-3-3/370244 "2024-11-09T22:17:39Z")

</div>

In my Obsersability lab 3.3, the Node service is not listed as an APM service. I have done this lab carefully, and even had the labs restarted to begin afresh. The services list in the APM app should display petclinic-…

---

## [Separate transaction for every resolver in AWS Lambda](https://discuss.elastic.co/t/separate-transaction-for-every-resolver-in-aws-lambda/369688)

<div class="topic-metadata">

**Author:** [@mkaniaa](https://discuss.elastic.co/u/mkaniaa)\
**Replies:** 7\
**Last updated:** [November 9, 2024, 4:28pm UTC](https://discuss.elastic.co/t/separate-transaction-for-every-resolver-in-aws-lambda/369688 "2024-11-09T16:28:49Z")

</div>

Hello! I'm using Elastic APM v8.15.0 with an AWS Lambda function written in Node.js, integrated via elastic-apm-node v4.7.3. My Lambda function has three separate resolvers. Here’s my current configuration setup: local…

---

## [APM Lower Metrics Count than traces](https://discuss.elastic.co/t/apm-lower-metrics-count-than-traces/369002)

<div class="topic-metadata">

**Author:** [@Garvit\_Jain](https://discuss.elastic.co/u/Garvit_Jain)\
**Replies:** 1\
**Last updated:** [October 29, 2024, 9:09pm UTC](https://discuss.elastic.co/t/apm-lower-metrics-count-than-traces/369002 "2024-10-29T21:09:06Z")

</div>

Hi, We are running Elastic APM Node.JS on 5% sampling with the following environment variable. ELASTIC\_APM\_TRANSACTION\_SAMPLE\_RATE: 0.05 On Storage Explore it shows 17% sampling, which is understandable, given that it…

---

## [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)

<div class="topic-metadata">

**Author:** [@kishorkumar](https://discuss.elastic.co/u/kishorkumar)\
**Replies:** 4\
**Last updated:** [October 22, 2024, 2:43pm UTC](https://discuss.elastic.co/t/apm-rum-js-and-apm-node-js-does-not-have-the-same-trace-id/365922 "2024-10-22T14:43:14Z")

</div>

my docker compose : version: '3.8' services: app: build: context: . dockerfile: Dockerfile restart: always environment: DB\_HOST: database DB\_PORT: 5432 DB\_PASSWORD: postgre…

---

## [APM Log Correlation problem](https://discuss.elastic.co/t/apm-log-correlation-problem/366218)

<div class="topic-metadata">

**Author:** [@Garvit\_Jain](https://discuss.elastic.co/u/Garvit_Jain)\
**Replies:** 6\
**Last updated:** [September 10, 2024, 9:22pm UTC](https://discuss.elastic.co/t/apm-log-correlation-problem/366218 "2024-09-10T21:22:17Z")

</div>

Kibana version: 8.14.0 Elasticsearch version: 8.14.0 APM Server version: 8.13.4 APM Agent language and version: Node.js Agent 4.7.2 I have having trouble with log correlation, log for the entry exists but it is not v…

---

## [Time spent by span type showing only app(not showing db, http, redis)](https://discuss.elastic.co/t/time-spent-by-span-type-showing-only-app-not-showing-db-http-redis/364459)

<div class="topic-metadata">

**Author:** [@Amol\_Nagotkar](https://discuss.elastic.co/u/Amol_Nagotkar)\
**Replies:** 7\
**Last updated:** [September 9, 2024, 9:11am UTC](https://discuss.elastic.co/t/time-spent-by-span-type-showing-only-app-not-showing-db-http-redis/364459 "2024-09-09T09:11:24Z")

</div>

Hi all, Using 7.15.1 version for all I am able to see only app in "Time spent by span type" section. in my case it should show app, http, redis, mongo... but not showing in "Trace sample" i am able to see my api's rou…

---

## [Span Trace showing instruments in commonjs but not in ECMA script](https://discuss.elastic.co/t/span-trace-showing-instruments-in-commonjs-but-not-in-ecma-script/366171)

<div class="topic-metadata">

**Author:** [@Amol\_Nagotkar](https://discuss.elastic.co/u/Amol_Nagotkar)\
**Replies:** 1\
**Last updated:** [September 9, 2024, 9:10am UTC](https://discuss.elastic.co/t/span-trace-showing-instruments-in-commonjs-but-not-in-ecma-script/366171 "2024-09-09T09:10:14Z")

</div>

Hi all, Mongo version 4.4.25 mongo node package version 4.4.1 Trace Sample showing api request with instrument like http,mongo & redis with commonjs, BUT NOT WITH ECMAScript module support. I read this doc- ECMAScri…

---

## [APM for external plugin server side](https://discuss.elastic.co/t/apm-for-external-plugin-server-side/363759)

<div class="topic-metadata">

**Author:** [@Sheereen](https://discuss.elastic.co/u/Sheereen)\
**Replies:** 15\
**Last updated:** [September 2, 2024, 3:15pm UTC](https://discuss.elastic.co/t/apm-for-external-plugin-server-side/363759 "2024-09-02T15:15:24Z")

</div>

Hello, I am creating an external kibana plugin in React, which has both public and server side, using ES and Kibana 8.13.0 (also testing in 8.14.3) I would like to have APM for the same. I have successfully added APM f…

---

## [Rum integration on NextJS with ELK-stack on k8s](https://discuss.elastic.co/t/rum-integration-on-nextjs-with-elk-stack-on-k8s/364422)

<div class="topic-metadata">

**Author:** [@Alex\_Thoger\_Holmberg](https://discuss.elastic.co/u/Alex_Thoger_Holmberg)\
**Replies:** 12\
**Last updated:** [August 13, 2024, 1:11pm UTC](https://discuss.elastic.co/t/rum-integration-on-nextjs-with-elk-stack-on-k8s/364422 "2024-08-13T13:11:13Z")

</div>

Kibana version: Newest version available Elasticsearch version: Newest version available APM Server version: Newest version available APM Agent language and version: RumJS Browser version: N/A Original install metho…

---

## [Remaining Transactions!](https://discuss.elastic.co/t/remaining-transactions/362641)

<div class="topic-metadata">

**Author:** [@Tubby\_Stubby](https://discuss.elastic.co/u/Tubby_Stubby)\
**Replies:** 4\
**Last updated:** [August 7, 2024, 3:54pm UTC](https://discuss.elastic.co/t/remaining-transactions/362641 "2024-08-07T15:54:43Z")

</div>

Kibana version: 8.14.1 Elasticsearch version: 8.14.1 APM Server version: 8.14.1 APM Agent language and version: elastic-apm-node@4.7.0 Original install method (e.g. download page, yum, deb, from source, etc.) and ver…

---

## [Elastic APM not capturing MySQL/ORM query parameters](https://discuss.elastic.co/t/elastic-apm-not-capturing-mysql-orm-query-parameters/364335)

<div class="topic-metadata">

**Author:** [@Victor\_Chan](https://discuss.elastic.co/u/Victor_Chan)\
**Replies:** 1\
**Last updated:** [August 5, 2024, 7:42am UTC](https://discuss.elastic.co/t/elastic-apm-not-capturing-mysql-orm-query-parameters/364335 "2024-08-05T07:42:27Z")

</div>

We are using Elastic APM to monitor our stack, and we're onboarding new services that talks to MySQL servers. The app is typescript with typeorm. It seems that the APM is capturing database transactions, but it is not …

---

## [No active transaction found for apm node agent integrate with Nuxtjs](https://discuss.elastic.co/t/no-active-transaction-found-for-apm-node-agent-integrate-with-nuxtjs/363386)

<div class="topic-metadata">

**Author:** [@Chen\_Wei\_Hsu](https://discuss.elastic.co/u/Chen_Wei_Hsu)\
**Replies:** 1\
**Last updated:** [July 19, 2024, 8:28pm UTC](https://discuss.elastic.co/t/no-active-transaction-found-for-apm-node-agent-integrate-with-nuxtjs/363386 "2024-07-19T20:28:27Z")

</div>

I have a Nuxtjs application, and I start the apm using CMD node -r ./server/node\_modules/elastic-apm-node/start.js ./server/index.mjs. I have configed the below environment variables. ELASTIC\_APM\_ENVIRONMENT=myenv ELA…

---

## [ARM 64 APM attacher images](https://discuss.elastic.co/t/arm-64-apm-attacher-images/359952)

<div class="topic-metadata">

**Author:** [@Garvit\_Jain](https://discuss.elastic.co/u/Garvit_Jain)\
**Replies:** 8\
**Last updated:** [May 24, 2024, 9:26pm UTC](https://discuss.elastic.co/t/arm-64-apm-attacher-images/359952 "2024-05-24T21:26:34Z")

</div>

Hi, Where can I find ARM64 images for APM attacher ? https://www.docker.elastic.co/r/observability/apm-agent-nodejs

---

## [How to ignore http status code 501 from being considered as error in APM](https://discuss.elastic.co/t/how-to-ignore-http-status-code-501-from-being-considered-as-error-in-apm/356976)

<div class="topic-metadata">

**Author:** [@Anandakumar](https://discuss.elastic.co/u/Anandakumar)\
**Replies:** 1\
**Last updated:** [April 18, 2024, 12:39pm UTC](https://discuss.elastic.co/t/how-to-ignore-http-status-code-501-from-being-considered-as-error-in-apm/356976 "2024-04-18T12:39:21Z")

</div>

Hi, We are using elastic-apm-node package to send APM to our Elastic Cloud deployment. One of our services tends to receive a lot of requests from a 3rd party which we don't support at this time and so we return 501 sta…

[Next page](https://discuss.elastic.co/tag/nodejs/33.md?match_all_tags=true&page=1&tags%5B%5D=nodejs)
