Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(telemetry): add wasm-tools wasm binary annotations (#1016)
* refactor(main): simplify/clean-up flow * refactor: pass wasmtools versioner throughout codebase * refactor(version): clarify versioner used * refactor(compute/init): sort flags * refactor: move InstallDir to github package * refactor: move setBinPerms to github package * remove(compute/init): wasm-tools NOTE: It's only needed for after a Wasm binary is produced. * feat: add wasm-tools versioner * feat: add skeleton wasm-tools annotation * feat: add more data to wasm-tools annotation * feat: support data collection for all languages * remove(config): don't increment version * fix(telemetry): disable unless hidden flag is set * fix(compute/test): ignore enable-telemetry flag * feat(telemetry): disable telemetry via env var * debugging * fix(compute/build): fix broken ci test * debugging * fix(compute/build): fix broken ci test * Revert "debugging" This reverts commit fb3f840. * Revert "debugging" This reverts commit 456126f. * feat(telemetry): track starter kit * feat(telemetry): capture imports for Go/Rust from source files * feat(telemetry): add --show-metadata to compute build * fix: remove temporary path * refactor(env): replace SplitN with Cut * feat(telemetry): parse JavaScript imports * refactor(compute/build): namespace metadata * remove: Imports() * refactor: rename env var to disable wasm metadata collection * fix(compute/build): switch metadata from go.sum to go.mod * feat: set only CLI version in metadata when metadata disabled * fix: move placement of wasmtools install * fix: compute tests * fix: Windows test * debugging windows * refactor: annotate public methods * refactor(compute/build): use gomod parser * refactor(compute/build): use processed-by flag for CLI version * refactor(compute/build): replace individual flags with single json data * fix(compute/build): record only current memory allocation * fix(compute/build): invert conditional and move show-metadata * fix(compute/build): don't hide show-metadata flag This is because we now always annotate the Wasm binary. If the user enables metadata then we annotate lots of data, otherwise we'll default to annotating the binary with the CLI version and the project language. * feat(compute/build): display IMPORTANT message related to wasm-tools * feat(compute/build): filter specified env vars * fix(compute/build): add new flag to test suite * fix(compute/build): fix formatting line breaks + use correct CPU value * temp * refactor(compute/build): clean-up debug log * fix(compute/build): trufflehog * fix(compute/build): only display secrets result once * doc(compute/build): annotate Result type * fix(compute/init): prevent runtime panic by removing duplicate flag * fix(compute): add ignore rules for new build flag to existing tests * refactor(compute/build): clean-up annotation logic * feat(compute/build): better secret scrubbing * fix: add missing metadata flags to composite commands * fix(compute/hashsum): pass correct variable * fix: correct main package after bad rebase * fix(compute/build): avoid empty config value
- Loading branch information