vtb-appit 0.1.18 → 0.1.19
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/appit.js +7 -7
- package/package.json +1 -1
package/appit.js
CHANGED
|
@@ -6,8 +6,8 @@ const axios = require('axios');
|
|
|
6
6
|
|
|
7
7
|
// Initialize OpenTelemetry SDK first
|
|
8
8
|
const sdk = require('./tracing');
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const { AppitNotify } = require('./appit-notify');
|
|
10
|
+
const notify = new AppitNotify();
|
|
11
11
|
|
|
12
12
|
// Then initialize Winston with OpenTelemetry transport
|
|
13
13
|
const winston = require("winston");
|
|
@@ -228,11 +228,11 @@ class Appit {
|
|
|
228
228
|
sdk.shutdown();
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
231
|
+
if(this.transformer.vtbMessages.length) {
|
|
232
|
+
notify.exec('failed', this.transformer.token, this.transformer.workspace_id, this.history.excursionId, this.transformer.vtbMessages);
|
|
233
|
+
} else {
|
|
234
|
+
notify.exec('done', this.transformer.token, this.transformer.workspace_id, this.history.excursionId);
|
|
235
|
+
}
|
|
236
236
|
|
|
237
237
|
|
|
238
238
|
return true;
|