@appland/scanner 1.74.6 → 1.75.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/CHANGELOG.md +7 -0
- package/built/report/scanResults.js +2 -1
- package/built/telemetry.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@appland/scanner-v1.75.0](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.74.6...@appland/scanner-v1.75.0) (2023-01-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Report env var names ([6264cb6](https://github.com/getappmap/appmap-js/commit/6264cb6c73927a90fc350bfb1531d3a8dd97df69))
|
|
7
|
+
|
|
1
8
|
# [@appland/scanner-v1.74.6](https://github.com/getappmap/appmap-js/compare/@appland/scanner-v1.74.5...@appland/scanner-v1.74.6) (2023-01-09)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -101,6 +101,7 @@ function sendScanResultsTelemetry(telemetry) {
|
|
|
101
101
|
numAppMaps: telemetry.numAppMaps,
|
|
102
102
|
numFindings: telemetry.numFindings,
|
|
103
103
|
},
|
|
104
|
-
})
|
|
104
|
+
}),
|
|
105
|
+
{ includeEnvironmentVariables: true };
|
|
105
106
|
}
|
|
106
107
|
exports.sendScanResultsTelemetry = sendScanResultsTelemetry;
|
package/built/telemetry.js
CHANGED
|
@@ -159,11 +159,14 @@ class Telemetry {
|
|
|
159
159
|
}
|
|
160
160
|
return this._client;
|
|
161
161
|
}
|
|
162
|
-
static sendEvent(data) {
|
|
162
|
+
static sendEvent(data, options = { includeEnvironment: false }) {
|
|
163
163
|
try {
|
|
164
164
|
const transformedProperties = transformProps(Object.assign({ version: version, args: process.argv.slice(1).join(' ') }, data.properties));
|
|
165
165
|
const transformedMetrics = transformProps(data.metrics || {});
|
|
166
166
|
const properties = Object.assign({ 'common.source': name, 'common.os': os.platform(), 'common.platformversion': os.release(), 'common.arch': os.arch(), 'appmap.cli.machineId': Telemetry.machineId, 'appmap.cli.sessionId': Telemetry.session.id }, transformedProperties);
|
|
167
|
+
if (options.includeEnvironment) {
|
|
168
|
+
properties['common.environmentVariables'] = Object.keys(process.env).sort().join(',');
|
|
169
|
+
}
|
|
167
170
|
const event = {
|
|
168
171
|
name: `${name}/${data.name}`,
|
|
169
172
|
measurements: transformedMetrics,
|