whatap 0.4.87 → 0.4.88

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.
@@ -306,7 +306,8 @@ function initCtx(req, res) {
306
306
  var step = new MessageStep();
307
307
  step.hash = HashUtil.hashFromString("HTTP-HEADERS");
308
308
  step.start_time = ctx.getElapsedTime();
309
- step.desc = JSON.stringify(req.headers);
309
+ if(req.headers && Object.keys(req.headers).length > 0)
310
+ step.desc = Object.keys(req.headers).map(key => `${key}=${req.headers[key]}`).join('\n');
310
311
  DataTextAgent.MESSAGE.add(step.hash, "HTTP-HEADERS");
311
312
  ctx.profile.push(step);
312
313
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "whatap",
3
3
  "homepage": "http://www.whatap.io",
4
- "version": "0.4.87",
4
+ "version": "0.4.88",
5
5
  "releaseDate": "20240111",
6
6
  "description": "Monitoring and Profiling Service",
7
7
  "main": "index.js",