heroku 10.14.1-beta.0 → 10.15.1-beta.0
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/global_telemetry.d.ts +1 -2
- package/lib/global_telemetry.js +4 -48
- package/oclif.manifest.json +1 -1
- package/package.json +2 -3
|
@@ -55,7 +55,6 @@ export declare function reportCmdNotFound(config: any): {
|
|
|
55
55
|
};
|
|
56
56
|
isVersionOrHelp: boolean;
|
|
57
57
|
};
|
|
58
|
-
export declare function sendTelemetry(currentTelemetry: any
|
|
58
|
+
export declare function sendTelemetry(currentTelemetry: any): Promise<void>;
|
|
59
59
|
export declare function sendToHoneycomb(data: Telemetry | CLIError): Promise<void>;
|
|
60
|
-
export declare function sendToRollbar(data: CLIError, rollbarCb?: () => void): Promise<unknown>;
|
|
61
60
|
export {};
|
package/lib/global_telemetry.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const Rollbar = require("rollbar");
|
|
3
|
+
exports.sendToHoneycomb = exports.sendTelemetry = exports.reportCmdNotFound = exports.computeDuration = exports.setupTelemetry = exports.initializeInstrumentation = exports.processor = void 0;
|
|
5
4
|
const command_1 = require("@heroku-cli/command");
|
|
6
5
|
const core_1 = require("@oclif/core");
|
|
7
6
|
const api_1 = require("@opentelemetry/api");
|
|
@@ -22,13 +21,6 @@ function getToken() {
|
|
|
22
21
|
return heroku.auth;
|
|
23
22
|
}
|
|
24
23
|
const debug = require('debug')('global_telemetry');
|
|
25
|
-
const rollbar = new Rollbar({
|
|
26
|
-
accessToken: '20783109b0064dbb85be0b2c5a5a5f79',
|
|
27
|
-
captureUncaught: true,
|
|
28
|
-
captureUnhandledRejections: true,
|
|
29
|
-
environment: isDev ? 'development' : 'production',
|
|
30
|
-
codeVersion: version,
|
|
31
|
-
});
|
|
32
24
|
registerInstrumentations({
|
|
33
25
|
instrumentations: [],
|
|
34
26
|
});
|
|
@@ -107,21 +99,13 @@ function reportCmdNotFound(config) {
|
|
|
107
99
|
};
|
|
108
100
|
}
|
|
109
101
|
exports.reportCmdNotFound = reportCmdNotFound;
|
|
110
|
-
async function sendTelemetry(currentTelemetry
|
|
111
|
-
// send telemetry to honeycomb
|
|
102
|
+
async function sendTelemetry(currentTelemetry) {
|
|
103
|
+
// send telemetry to honeycomb
|
|
112
104
|
if (isTelemetryDisabled) {
|
|
113
105
|
return;
|
|
114
106
|
}
|
|
115
107
|
const telemetry = currentTelemetry;
|
|
116
|
-
|
|
117
|
-
await Promise.all([
|
|
118
|
-
sendToRollbar(telemetry, rollbarCb),
|
|
119
|
-
sendToHoneycomb(telemetry),
|
|
120
|
-
]);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
await sendToHoneycomb(telemetry);
|
|
124
|
-
}
|
|
108
|
+
await sendToHoneycomb(telemetry);
|
|
125
109
|
}
|
|
126
110
|
exports.sendTelemetry = sendTelemetry;
|
|
127
111
|
async function sendToHoneycomb(data) {
|
|
@@ -156,31 +140,3 @@ async function sendToHoneycomb(data) {
|
|
|
156
140
|
}
|
|
157
141
|
}
|
|
158
142
|
exports.sendToHoneycomb = sendToHoneycomb;
|
|
159
|
-
async function sendToRollbar(data, rollbarCb) {
|
|
160
|
-
// Make this awaitable so we can wait for it to finish before exiting
|
|
161
|
-
let promiseResolve;
|
|
162
|
-
const rollbarPromise = new Promise((resolve, reject) => {
|
|
163
|
-
promiseResolve = () => {
|
|
164
|
-
if (rollbarCb) {
|
|
165
|
-
try {
|
|
166
|
-
rollbarCb();
|
|
167
|
-
}
|
|
168
|
-
catch (error) {
|
|
169
|
-
reject(error);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
resolve(null);
|
|
173
|
-
};
|
|
174
|
-
});
|
|
175
|
-
const rollbarError = { name: data.name, message: data.message, stack: data.stack, cli_run_duration: data.cliRunDuration };
|
|
176
|
-
try {
|
|
177
|
-
// send data to rollbar
|
|
178
|
-
rollbar.error('Failed to complete execution', rollbarError, promiseResolve);
|
|
179
|
-
}
|
|
180
|
-
catch (_a) {
|
|
181
|
-
debug('Could not send error report');
|
|
182
|
-
return Promise.reject();
|
|
183
|
-
}
|
|
184
|
-
return rollbarPromise;
|
|
185
|
-
}
|
|
186
|
-
exports.sendToRollbar = sendToRollbar;
|
package/oclif.manifest.json
CHANGED
|
@@ -15015,5 +15015,5 @@
|
|
|
15015
15015
|
]
|
|
15016
15016
|
}
|
|
15017
15017
|
},
|
|
15018
|
-
"version": "10.
|
|
15018
|
+
"version": "10.15.1-beta.0"
|
|
15019
15019
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "heroku",
|
|
3
3
|
"description": "CLI to interact with Heroku",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.15.1-beta.0",
|
|
5
5
|
"author": "Heroku",
|
|
6
6
|
"bin": "./bin/run",
|
|
7
7
|
"bugs": "https://github.com/heroku/cli/issues",
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"printf": "0.6.1",
|
|
62
62
|
"psl": "^1.9.0",
|
|
63
63
|
"redis-parser": "^3.0.0",
|
|
64
|
-
"rollbar": "^2.26.4",
|
|
65
64
|
"semver": "7.6.1",
|
|
66
65
|
"shell-escape": "^0.2.0",
|
|
67
66
|
"shell-quote": "^1.8.1",
|
|
@@ -398,5 +397,5 @@
|
|
|
398
397
|
"version": "oclif readme --multi && git add README.md ../../docs"
|
|
399
398
|
},
|
|
400
399
|
"types": "lib/index.d.ts",
|
|
401
|
-
"gitHead": "
|
|
400
|
+
"gitHead": "88abd3605aca5bf74fa0a8400230ad52c3951476"
|
|
402
401
|
}
|