@mhubcloud/tms_core 1.7.3 → 1.7.5

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/lib/utils.js CHANGED
@@ -9,6 +9,10 @@ if (process.env.APPINSIGHTS_INSTRUMENTATIONKEY) {
9
9
  appInsights
10
10
  .setup() //Set einvironmet variable APPINSIGHTS_INSTRUMENTATIONKEY, so setup() can be called w/o parameters
11
11
  .setAutoCollectDependencies(false)
12
+ .setAutoCollectConsole(true, true)
13
+ .setSendLiveMetrics(false)
14
+ .setAutoCollectRequests(false)
15
+ .setAutoCollectPerformance(false)
12
16
  .setUseDiskRetryCaching(false)
13
17
  .start();
14
18
  aiClient = appInsights.defaultClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhubcloud/tms_core",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "Core function for mHub Cloud TMS publishers",
5
5
  "homepage": "https://mhubcloud.com/",
6
6
  "license": "Apache 2.0",
@@ -24,10 +24,10 @@ module.exports = {
24
24
  publish: async function publish(config, data, event) {
25
25
  data = utils.removeUndefined(data);
26
26
  data.v = 2;
27
+ data.seg = 1;
28
+ data.gcs = 111;
27
29
  data.tid = config.trackingId;
28
- data.ep = {
29
- anonymize_ip : true
30
- };
30
+
31
31
  let payload = "";
32
32
 
33
33
  for (const prp in data) {