We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f17d47 commit 2bcb2edCopy full SHA for 2bcb2ed
src/appInsights.ts
@@ -51,6 +51,8 @@ export function getCpus(): string {
51
}
52
53
54
+const homeDir = os.homedir();
55
+
56
function getSystemMemory(): string {
57
return `${(os.totalmem() / (1024 * 1024 * 1024)).toFixed(2)} GB`;
58
@@ -68,7 +70,7 @@ export function buildPropertiesAndMeasurements(attributes: Attributes): {
68
70
Object.keys(attributes).forEach((key) => {
69
71
const value = attributes[key];
72
if (isString(value)) {
- properties[key] = value;
73
+ properties[key] = value.replace(homeDir, '~');
74
} else if (isNumber(value)) {
75
measurements[key] = value;
76
} else if (isBoolean(value)) {
0 commit comments