@graphql-mesh/plugin-newrelic 0.94.3 → 0.94.4-alpha-20230703144615-1195a6716

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -35,7 +35,7 @@ function useMeshNewrelic(options) {
35
35
  }));
36
36
  },
37
37
  onRequest({ request, url }) {
38
- const currentTransaction = instrumentationApi.getTransaction();
38
+ const currentTransaction = instrumentationApi.agent.tracer.getTransaction();
39
39
  if (!currentTransaction) {
40
40
  instrumentationApi.startWebTransaction(url.pathname, () => new Promise(resolve => transactionCallback.set(request, resolve)));
41
41
  }
package/esm/index.js CHANGED
@@ -32,7 +32,7 @@ export default function useMeshNewrelic(options) {
32
32
  }));
33
33
  },
34
34
  onRequest({ request, url }) {
35
- const currentTransaction = instrumentationApi.getTransaction();
35
+ const currentTransaction = instrumentationApi.agent.tracer.getTransaction();
36
36
  if (!currentTransaction) {
37
37
  instrumentationApi.startWebTransaction(url.pathname, () => new Promise(resolve => transactionCallback.set(request, resolve)));
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/plugin-newrelic",
3
- "version": "0.94.3",
3
+ "version": "0.94.4-alpha-20230703144615-1195a6716",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@graphql-mesh/cross-helpers": "^0.4.0",