npm newrelic 9.8.0
v9.8.0

latest releases: 12.5.0, 12.4.0, 12.3.1...
20 months ago

v9.8.0 (2023-01-17)

  • Updated getBrowserTimingHeader to allow Browser Agent to be generated even when not in a Transaction by adding allowTransactionlessInjection to function options. allowTransactionlessInjection is a boolean option, and when set to true, will allow injection of the Browser Agent when not in a transaction. This is intended to be used in frameworks that build Static Site Generation(SSG). Note that if you are using this option, you may need to wait until the Node agent has established a connection before calling getBrowserTimingHeader. To wait until the agent is connected, you can add the following check to your code:
if (!newrelic.agent.collector.isConnected()) {
  await new Promise((resolve) => {
    newrelic.agent.on('connected', resolve)
  })
}

Support statement:

  • New Relic recommends that you upgrade the agent regularly to ensure that you're getting the latest features and performance benefits. Additionally, older releases will no longer be supported when they reach end-of-life.

Don't miss a new newrelic release

NewReleases is sending notifications on new releases.