Hi,
Apologies for the delay in responding. The config pageLoadTransactionName only works for the first transaction which is of type page-load and does not work for subsequent transactions since they belong to type route-change.
What you can do right now is to use out Events API (undocumented right now - https://github.com/elastic/apm-agent-rum-js/issues/389), You can listen for these events and change the transaction names based on location path.
apm.observe('transaction:end', (tr) => {
if (tr.name === 'Unknown') {
tr.name = window.location.pathname
}
})
We are also working on Angular Integration which would make it easier to see the transaction names setting properly to the route names. You can track it here https://github.com/elastic/apm-agent-rum-js/pull/384
Any feedback would be appreciated, Also let us know if you have any questions.
Thanks,
Vignesh