forked from heroku/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): add cli performance telemetry (heroku#2425) (heroku#2435)
* feat(cli): add cli performance telemetry (heroku#2425) * First pass with telemetry collection * Setup cli data collection for telemetry * WIP rollbar not logging with basic catch * WIP Successfully posted to rollbar * Add debugs to telemetry try-catches * Code clean up * WIP setting dev env * WIP trace and span setup * WIP sdk setup. Async not working anymore * WIP otel setup * WIP refactor otel setup * Rebase * WIP setting up new otel setup * WIP add required packages * Add telemetry to otel attributes & code clean up * Code clean up pass * Add bearer token & refactor * Refactor * Code clean up * Setup production environment in exporter * Re-yarn * chore(cli): add telemetry tests (heroku#2434) * First pass with telemetry collection * Setup cli data collection for telemetry * WIP rollbar not logging with basic catch * WIP Successfully posted to rollbar * Add debugs to telemetry try-catches * Code clean up * WIP setting dev env * WIP sdk setup. Async not working anymore * WIP otel setup * WIP refactor otel setup * Rebase * WIP setting up new otel setup * Add telemetry to otel attributes & code clean up * WIP tests for telemetry * Update process.on(exit) functionality & add tests * Code clean up * Rebase * Add types & code clean up * fix: make sure both honeycome and rollbar requests happen before process.ext * Make sendToRollbar awaitable --------- Co-authored-by: RyanDagg <[email protected]> * fix(cli): fix rollbar exitCode returning undefined (heroku#2440) * Fix exitCode bug * Update tests * WIP fix tests * Reinstate tests --------- Co-authored-by: RyanDagg <[email protected]>
- Loading branch information
1 parent
1875102
commit 465c806
Showing
6 changed files
with
577 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {Hook} from '@oclif/core' | ||
|
||
import * as telemetry from '../../global_telemetry' | ||
|
||
declare const global: telemetry.TelemetryGlobal | ||
|
||
const performance_analytics: Hook<'init'> = async function (options) { | ||
global.cliTelemetry = telemetry.setupTelemetry(this.config, options) | ||
} | ||
|
||
export default performance_analytics |
Oops, something went wrong.