NodeJS APM not reporting transactions but reporting metrics

Kibana version: 7.6.2

Elasticsearch version: 7.6.2

APM Server version: 7.6.2

APM Agent language and version: NodeJS 3.6.1

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
APM Agent reporting metrics but not reporting any transactions.

Code:
1.app.ts


2.server.ts

3.inversify.config.ts

APM Config:
Everything is set through env variables

ELASTIC_APM_SERVER_URL=https://test-apm-server:8200
ELASTIC_APM_SECRET_TOKEN=secret-token
ELASTIC_APM_VERIFY_SERVER_CERT=false
ELASTIC_APM_SERVICE_NAME=chandra-test
ELASTIC_APM_ENVIRONMENT=local
ELASTIC_APM_LOG_LEVEL=trace

APM Agent Trace Log:
https://pastebin.com/10E0RhEQ

Am I missing something in the configuration?

Any advice/help would be appreciated.

Thanks,
Chandra

Able to resolve the issue by doing the APM agent initialization before importing anything in server.ts

Now NodeJs app is reporting the transactions properly.

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