heroku 8.11.0-beta.2 → 8.11.0-beta.3

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.
@@ -15,9 +15,11 @@ const path = require('path');
15
15
  const { version } = require('../package.json');
16
16
  const root = path.resolve(__dirname, '../package.json');
17
17
  const isDev = process.env.IS_DEV_ENVIRONMENT === 'true';
18
- const config = new core_1.Config({ root });
19
- const heroku = new command_1.APIClient(config);
20
- const token = heroku.auth;
18
+ function getToken() {
19
+ const config = new core_1.Config({ root });
20
+ const heroku = new command_1.APIClient(config);
21
+ return heroku.auth;
22
+ }
21
23
  const debug = require('debug')('global_telemetry');
22
24
  const rollbar = new Rollbar({
23
25
  accessToken: '20783109b0064dbb85be0b2c5a5a5f79',
@@ -38,7 +40,7 @@ const resource = Resource
38
40
  const provider = new NodeTracerProvider({
39
41
  resource,
40
42
  });
41
- const headers = { Authorization: `Bearer ${token}` };
43
+ const headers = { Authorization: `Bearer ${process.env.IS_HEROKU_TEST_ENV !== 'true' ? getToken() : ''}` };
42
44
  const exporter = new OTLPTraceExporter({
43
45
  url: isDev ? 'https://backboard-staging.herokuapp.com/otel/v1/traces' : 'https://backboard.heroku.com/otel/v1/traces',
44
46
  headers,
@@ -2,10 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const telemetry = require("../../global_telemetry");
4
4
  const performance_analytics = async function () {
5
- if (global.cliTelemetry) {
6
- const cmdStartTime = global.cliTelemetry.commandRunDuration;
7
- global.cliTelemetry.commandRunDuration = telemetry.computeDuration(cmdStartTime);
8
- global.cliTelemetry.lifecycleHookCompletion.postrun = true;
5
+ if (process.env.IS_HEROKU_TEST_ENV === 'true' || !global.cliTelemetry) {
6
+ return;
9
7
  }
8
+ const cmdStartTime = global.cliTelemetry.commandRunDuration;
9
+ global.cliTelemetry.commandRunDuration = telemetry.computeDuration(cmdStartTime);
10
+ global.cliTelemetry.lifecycleHookCompletion.postrun = true;
10
11
  };
11
12
  exports.default = performance_analytics;
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const analytics_1 = require("../../analytics");
4
4
  const telemetry = require("../../global_telemetry");
5
5
  const analytics = async function (options) {
6
+ if (process.env.IS_HEROKU_TEST_ENV === 'true') {
7
+ return;
8
+ }
6
9
  global.cliTelemetry = telemetry.setupTelemetry(this.config, options);
7
10
  const analytics = new analytics_1.default(this.config);
8
11
  await analytics.record(options);
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "8.11.0-beta.2",
2
+ "version": "8.11.0-beta.3",
3
3
  "commands": {
4
4
  "console": {
5
5
  "id": "console",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "heroku",
3
3
  "description": "CLI to interact with Heroku",
4
- "version": "8.11.0-beta.2",
4
+ "version": "8.11.0-beta.3",
5
5
  "author": "Jeff Dickey @jdxcode",
6
6
  "bin": "./bin/run",
7
7
  "bugs": "https://github.com/heroku/cli/issues",
@@ -10,18 +10,18 @@
10
10
  "@heroku-cli/command": "^10.0.0",
11
11
  "@heroku-cli/command-v9": "npm:@heroku-cli/command@^9.0.2",
12
12
  "@heroku-cli/notifications": "^1.2.2",
13
- "@heroku-cli/plugin-addons-v5": "^8.11.0-beta.2",
14
- "@heroku-cli/plugin-apps-v5": "^8.11.0-beta.2",
15
- "@heroku-cli/plugin-certs-v5": "^8.11.0-beta.2",
16
- "@heroku-cli/plugin-ci-v5": "^8.11.0-beta.2",
17
- "@heroku-cli/plugin-container-registry-v5": "^8.11.0-beta.2",
18
- "@heroku-cli/plugin-orgs-v5": "^8.11.0-beta.2",
19
- "@heroku-cli/plugin-pg-v5": "^8.11.0-beta.2",
13
+ "@heroku-cli/plugin-addons-v5": "^8.11.0-beta.3",
14
+ "@heroku-cli/plugin-apps-v5": "^8.11.0-beta.3",
15
+ "@heroku-cli/plugin-certs-v5": "^8.11.0-beta.3",
16
+ "@heroku-cli/plugin-ci-v5": "^8.11.0-beta.3",
17
+ "@heroku-cli/plugin-container-registry-v5": "^8.11.0-beta.3",
18
+ "@heroku-cli/plugin-orgs-v5": "^8.11.0-beta.3",
19
+ "@heroku-cli/plugin-pg-v5": "^8.11.0-beta.3",
20
20
  "@heroku-cli/plugin-ps": "^8.1.7",
21
21
  "@heroku-cli/plugin-ps-exec": "^2.4.0",
22
- "@heroku-cli/plugin-redis-v5": "^8.11.0-beta.2",
22
+ "@heroku-cli/plugin-redis-v5": "^8.11.0-beta.3",
23
23
  "@heroku-cli/plugin-run": "8.1.4",
24
- "@heroku-cli/plugin-spaces": "^8.11.0-beta.2",
24
+ "@heroku-cli/plugin-spaces": "^8.11.0-beta.3",
25
25
  "@heroku-cli/schema": "^1.0.25",
26
26
  "@heroku/buildpack-registry": "^1.0.1",
27
27
  "@heroku/eventsource": "^1.0.7",
@@ -356,5 +356,5 @@
356
356
  "version": "oclif readme --multi && git add README.md ../../docs"
357
357
  },
358
358
  "types": "lib/index.d.ts",
359
- "gitHead": "d70f83f0eabd50658cca784b494d3300764cfcff"
359
+ "gitHead": "797d71826343367e6c544625bba4ddfb993be643"
360
360
  }