APM Agent language and version:
nodejs : 12
fastify : 2.11.0
mongoose : 5.11.1
elastic-apm-node : 3.14.0
ioredis : 4.14.1
Browser version:
Google Chrome 90.0.4430.85
Original install method (e.g. download page, yum, deb, from source, etc.) and version:
Fresh install or upgraded from other version?
fresh install
Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
Launch APM server, elastic search, and Kibana containers
Install Node APM in the server
Call API using postman
Browse the application
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
I'm trying to build a APM tool for server monitoring (server performance, transaction tracing... etc). It is easy to build APM tool, but I can't get some transaction detail like distributed span.
Let me try to make sure I understand what you are saying is the problem. Is the problem that you don't see a span for a query to MongoDB using mongoose? Here is a small example using mongoose@5.11.1 (like you), but using express instead of fastify (in case that matters, but it shouldn't):
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.