that's correct, the agent will collect metric data independently of transactions/spans.
From the log screenshots, it's hard to tell why you get transaction data in some cases and in others not. Can you confirm that the application and the scenario you are testing are always the same?
If you have a simple reproducer project, I can take a look.
Hey, It seems that I had missed this sentence in the documentation.
The app.UseAllElasticApm(...) line must be the first line in the Configure method, otherwise the agent won’t be able to properly measure the timing of your requests, and complete requests may potentially be missed by the agent
After I moved the line to the top it seems to fix the issue.
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.