Hi! I set up an APM agent (v1.7) for my Node.JS/Express app. I'm seeing my service and transactions in Kibana APM, but I'm only seeing DB and ext spans in transaction traces. I confirmed I'm running supported versions (Node 6.14.3/Express 4.16). I even stripped down the code to a bare minimum to try to get any JS spans to appear, but nothing is working. Can someone help me spot any obvious errors?
const apm = require('elastic-apm-node');
apm.start();
const _ = require('lodash');
const express = require('express')
const app = express()
const https = require('https');
const config = require('./config');
const request = require('request');
app.get('/', (req, res) => {
_.forEach(['a','b'], () => {
for (let i = 0; i < 1000000; i++) {
let j = i;
}
})
Object.keys({foo: 'bar'})
res.send('Hello World!')
})
app.get('/foo', (req, res) => request('http://example.com').pipe(res));
const server = https.createServer(config.httpsOptions, app);
server.listen(process.env.PORT);