(partly) answering my own question - so adding the following at the beginning on the pages/_app.js
file does generate RUM data
import { init as initApm } from '@elastic/apm-rum'
var apm = initApm({
serviceName: 'my-service-name',
serverUrl: 'http://localhost:8200',
serviceVersion: '',
environment: 'my-environment'
})
but is this ideal?