whatap 0.5.17 → 0.5.18

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.
@@ -342,7 +342,7 @@ PrismaObserver.prototype._finishQuery = function(ctx, sql_step) {
342
342
  };
343
343
 
344
344
  PrismaObserver.prototype._handleError = function(ctx, sql_step, err) {
345
- sql_step.elapsed = ctx.getElapsedTime()
345
+ sql_step.elapsed = ctx.getElapsedTime() - sql_step.start_time;
346
346
  ctx.sql_time = (ctx.sql_time || 0) + sql_step.elapsed;
347
347
 
348
348
  TraceSQL.isSlowSQL(ctx);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "whatap",
3
3
  "homepage": "http://www.whatap.io",
4
- "version": "0.5.17",
4
+ "version": "0.5.18",
5
5
  "releaseDate": "20250416",
6
6
  "description": "Monitoring and Profiling Service",
7
7
  "main": "index.js",