backend-manager 3.2.80 → 3.2.82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "3.2.80",
3
+ "version": "3.2.82",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -56,7 +56,7 @@
56
56
  "moment": "^2.30.1",
57
57
  "nanoid": "^3.3.7",
58
58
  "node-fetch": "^2.7.0",
59
- "node-powertools": "^1.3.0",
59
+ "node-powertools": "^1.4.0",
60
60
  "npm-api": "^1.0.1",
61
61
  "paypal-server-api": "^2.0.0",
62
62
  "pushid": "^1.0.0",
@@ -71,4 +71,4 @@
71
71
  "wonderful-log": "^1.0.5",
72
72
  "yargs": "^17.7.2"
73
73
  }
74
- }
74
+ }
@@ -87,8 +87,6 @@ Module.prototype.main = function () {
87
87
  .catch((e) => {
88
88
  return reject(assistant.errorify(e, {code: 500}));
89
89
  });
90
-
91
-
92
90
  })
93
91
  .catch((e) => {
94
92
  return reject(e);
@@ -66,6 +66,10 @@ BackendAssistant.prototype.init = function (ref, options) {
66
66
  self.id = now.getTime();
67
67
  }
68
68
 
69
+ // Set trace
70
+ self.trace = self.ref.req.headers['X-Cloud-Trace-Context'] || null;
71
+
72
+ // Set tag
69
73
  self.tag = `${self.meta.name}/${self.id}`;
70
74
 
71
75
  // Set stuff about request