newrelic 7.5.1 → 7.5.2

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/NEWS.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### v7.5.2 (2021-07-07)
2
+
3
+ * Fixed bug where promise-based cursor methods would not properly measure the duration of execution.
4
+
1
5
  ### v7.5.1 (2021-06-21)
2
6
 
3
7
  * Fixed loading config from the main module's directory. Thank you @alexpls for the contribution.
@@ -288,7 +288,7 @@ function makeQueryDescFunc(shim, methodName) {
288
288
  // segment name does not actually use query string
289
289
  // method name is set as query so the query parser has access to the op name
290
290
  const parameters = getInstanceAttributeParameters(shim, this)
291
- return {query: methodName, parameters, callback: shim.LAST}
291
+ return {query: methodName, parameters, promise: true, callback: shim.LAST}
292
292
  }
293
293
  }
294
294
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newrelic",
3
- "version": "7.5.1",
3
+ "version": "7.5.2",
4
4
  "author": "New Relic Node.js agent team <nodejs@newrelic.com>",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [