Elastic-apm-node memory leak

It seems like 2.11.0 fixes the MaxListeners warning and the FATAL out of memory!

I still see that the SPANS are not being automatically created except for the first iteration.

  • set ELASTIC_APM_LOG_LEVEL to "Trace"
  • run the test for 10 iterations
  • look at the trace output
  • notice how the "start span"/"ended span"/"encoding span" appears on the first iteration, but not the 2nd through 10th iterations
  • if you look at the apm docs with kibana you will notice that the spans do not appear