@probelabs/visor 0.1.100 → 0.1.102

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.
Files changed (79) hide show
  1. package/dist/debug-visualizer/debug-span-exporter.d.ts +5 -3
  2. package/dist/debug-visualizer/debug-span-exporter.d.ts.map +1 -1
  3. package/dist/generated/config-schema.d.ts +11 -0
  4. package/dist/generated/config-schema.d.ts.map +1 -1
  5. package/dist/generated/config-schema.json +11 -0
  6. package/dist/index.js +48587 -193583
  7. package/dist/sdk/{check-execution-engine-F3662LY7.mjs → check-execution-engine-6QJXYYON.mjs} +3 -3
  8. package/dist/sdk/{chunk-FVS5CJ5S.mjs → chunk-33QVZ2D4.mjs} +117 -4
  9. package/dist/sdk/chunk-33QVZ2D4.mjs.map +1 -0
  10. package/dist/sdk/{chunk-X2JKUOE5.mjs → chunk-O4RP4BRH.mjs} +144 -146
  11. package/dist/sdk/chunk-O4RP4BRH.mjs.map +1 -0
  12. package/dist/sdk/{mermaid-telemetry-FBF6D35S.mjs → mermaid-telemetry-YCTIG76M.mjs} +2 -2
  13. package/dist/sdk/sdk.d.mts +4 -0
  14. package/dist/sdk/sdk.d.ts +4 -0
  15. package/dist/sdk/sdk.js +282 -154
  16. package/dist/sdk/sdk.js.map +1 -1
  17. package/dist/sdk/sdk.mjs +13 -2
  18. package/dist/sdk/sdk.mjs.map +1 -1
  19. package/dist/telemetry/file-span-exporter.d.ts +4 -3
  20. package/dist/telemetry/file-span-exporter.d.ts.map +1 -1
  21. package/dist/telemetry/lazy-otel.d.ts +48 -0
  22. package/dist/telemetry/lazy-otel.d.ts.map +1 -0
  23. package/dist/telemetry/opentelemetry.d.ts.map +1 -1
  24. package/dist/telemetry/state-capture.d.ts +1 -1
  25. package/dist/telemetry/state-capture.d.ts.map +1 -1
  26. package/dist/telemetry/trace-helpers.d.ts +2 -2
  27. package/dist/telemetry/trace-helpers.d.ts.map +1 -1
  28. package/dist/telemetry/trace-report-exporter.d.ts +4 -3
  29. package/dist/telemetry/trace-report-exporter.d.ts.map +1 -1
  30. package/dist/types/config.d.ts +4 -0
  31. package/dist/types/config.d.ts.map +1 -1
  32. package/package.json +15 -13
  33. package/dist/136.index.js +0 -82
  34. package/dist/146.index.js +0 -82
  35. package/dist/159.index.js +0 -38
  36. package/dist/160.index.js +0 -82
  37. package/dist/179.index.js +0 -48
  38. package/dist/191.index.js +0 -82
  39. package/dist/201.index.js +0 -82
  40. package/dist/262.index.js +0 -48
  41. package/dist/273.index.js +0 -48
  42. package/dist/34.index.js +0 -81
  43. package/dist/384.index.js +0 -38
  44. package/dist/405.index.js +0 -48
  45. package/dist/42.index.js +0 -38
  46. package/dist/437.index.js +0 -82
  47. package/dist/441.index.js +0 -81
  48. package/dist/448.index.js +0 -48
  49. package/dist/450.index.js +0 -82
  50. package/dist/491.index.js +0 -81
  51. package/dist/558.index.js +0 -82
  52. package/dist/69.index.js +0 -38
  53. package/dist/715.index.js +0 -38
  54. package/dist/737.index.js +0 -82
  55. package/dist/760.index.js +0 -81
  56. package/dist/834.index.js +0 -48
  57. package/dist/886.index.js +0 -81
  58. package/dist/917.index.js +0 -82
  59. package/dist/940.index.js +0 -38
  60. package/dist/955.index.js +0 -82
  61. package/dist/989.index.js +0 -81
  62. package/dist/996.index.js +0 -82
  63. package/dist/proto/channelz.proto +0 -564
  64. package/dist/proto/protoc-gen-validate/LICENSE +0 -202
  65. package/dist/proto/protoc-gen-validate/validate/validate.proto +0 -797
  66. package/dist/proto/xds/LICENSE +0 -201
  67. package/dist/proto/xds/xds/data/orca/v3/orca_load_report.proto +0 -58
  68. package/dist/proto/xds/xds/service/orca/v3/orca.proto +0 -36
  69. package/dist/protoc-gen-validate/LICENSE +0 -202
  70. package/dist/protoc-gen-validate/validate/validate.proto +0 -797
  71. package/dist/sdk/chunk-FVS5CJ5S.mjs.map +0 -1
  72. package/dist/sdk/chunk-X2JKUOE5.mjs.map +0 -1
  73. package/dist/xds/LICENSE +0 -201
  74. package/dist/xds/xds/data/orca/v3/orca_load_report.proto +0 -58
  75. package/dist/xds/xds/service/orca/v3/orca.proto +0 -36
  76. /package/dist/output/traces/{run-2025-10-22T10-40-34-055Z.ndjson → run-2025-10-22T13-28-22-633Z.ndjson} +0 -0
  77. /package/dist/sdk/{check-execution-engine-F3662LY7.mjs.map → check-execution-engine-6QJXYYON.mjs.map} +0 -0
  78. /package/dist/sdk/{mermaid-telemetry-FBF6D35S.mjs.map → mermaid-telemetry-YCTIG76M.mjs.map} +0 -0
  79. /package/dist/traces/{run-2025-10-22T10-40-34-055Z.ndjson → run-2025-10-22T13-28-22-633Z.ndjson} +0 -0
package/dist/450.index.js DELETED
@@ -1,82 +0,0 @@
1
- "use strict";
2
- exports.id = 450;
3
- exports.ids = [450];
4
- exports.modules = {
5
-
6
- /***/ 63338:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
-
10
- /*
11
- * Copyright The OpenTelemetry Authors
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * https://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- Object.defineProperty(exports, "__esModule", ({ value: true }));
26
- exports.execAsync = void 0;
27
- const child_process = __webpack_require__(35317);
28
- const util = __webpack_require__(39023);
29
- exports.execAsync = util.promisify(child_process.exec);
30
- //# sourceMappingURL=execAsync.js.map
31
-
32
- /***/ }),
33
-
34
- /***/ 50450:
35
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
-
37
-
38
- /*
39
- * Copyright The OpenTelemetry Authors
40
- *
41
- * Licensed under the Apache License, Version 2.0 (the "License");
42
- * you may not use this file except in compliance with the License.
43
- * You may obtain a copy of the License at
44
- *
45
- * https://www.apache.org/licenses/LICENSE-2.0
46
- *
47
- * Unless required by applicable law or agreed to in writing, software
48
- * distributed under the License is distributed on an "AS IS" BASIS,
49
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
- * See the License for the specific language governing permissions and
51
- * limitations under the License.
52
- */
53
- Object.defineProperty(exports, "__esModule", ({ value: true }));
54
- exports.getMachineId = void 0;
55
- const process = __webpack_require__(932);
56
- const execAsync_1 = __webpack_require__(63338);
57
- const api_1 = __webpack_require__(63914);
58
- async function getMachineId() {
59
- const args = 'QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid';
60
- let command = '%windir%\\System32\\REG.exe';
61
- if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {
62
- command = '%windir%\\sysnative\\cmd.exe /c ' + command;
63
- }
64
- try {
65
- const result = await (0, execAsync_1.execAsync)(`${command} ${args}`);
66
- const parts = result.stdout.split('REG_SZ');
67
- if (parts.length === 2) {
68
- return parts[1].trim();
69
- }
70
- }
71
- catch (e) {
72
- api_1.diag.debug(`error reading machine id: ${e}`);
73
- }
74
- return undefined;
75
- }
76
- exports.getMachineId = getMachineId;
77
- //# sourceMappingURL=getMachineId-win.js.map
78
-
79
- /***/ })
80
-
81
- };
82
- ;
package/dist/491.index.js DELETED
@@ -1,81 +0,0 @@
1
- "use strict";
2
- exports.id = 491;
3
- exports.ids = [491];
4
- exports.modules = {
5
-
6
- /***/ 66272:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
-
10
- /*
11
- * Copyright The OpenTelemetry Authors
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * https://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- Object.defineProperty(exports, "__esModule", ({ value: true }));
26
- exports.execAsync = void 0;
27
- const child_process = __webpack_require__(35317);
28
- const util = __webpack_require__(39023);
29
- exports.execAsync = util.promisify(child_process.exec);
30
- //# sourceMappingURL=execAsync.js.map
31
-
32
- /***/ }),
33
-
34
- /***/ 94491:
35
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
-
37
-
38
- /*
39
- * Copyright The OpenTelemetry Authors
40
- *
41
- * Licensed under the Apache License, Version 2.0 (the "License");
42
- * you may not use this file except in compliance with the License.
43
- * You may obtain a copy of the License at
44
- *
45
- * https://www.apache.org/licenses/LICENSE-2.0
46
- *
47
- * Unless required by applicable law or agreed to in writing, software
48
- * distributed under the License is distributed on an "AS IS" BASIS,
49
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
- * See the License for the specific language governing permissions and
51
- * limitations under the License.
52
- */
53
- Object.defineProperty(exports, "__esModule", ({ value: true }));
54
- exports.getMachineId = void 0;
55
- const fs_1 = __webpack_require__(79896);
56
- const execAsync_1 = __webpack_require__(66272);
57
- const api_1 = __webpack_require__(63914);
58
- async function getMachineId() {
59
- try {
60
- const result = await fs_1.promises.readFile('/etc/hostid', { encoding: 'utf8' });
61
- return result.trim();
62
- }
63
- catch (e) {
64
- api_1.diag.debug(`error reading machine id: ${e}`);
65
- }
66
- try {
67
- const result = await (0, execAsync_1.execAsync)('kenv -q smbios.system.uuid');
68
- return result.stdout.trim();
69
- }
70
- catch (e) {
71
- api_1.diag.debug(`error reading machine id: ${e}`);
72
- }
73
- return undefined;
74
- }
75
- exports.getMachineId = getMachineId;
76
- //# sourceMappingURL=getMachineId-bsd.js.map
77
-
78
- /***/ })
79
-
80
- };
81
- ;
package/dist/558.index.js DELETED
@@ -1,82 +0,0 @@
1
- "use strict";
2
- exports.id = 558;
3
- exports.ids = [558];
4
- exports.modules = {
5
-
6
- /***/ 42006:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
-
10
- /*
11
- * Copyright The OpenTelemetry Authors
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * https://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- Object.defineProperty(exports, "__esModule", ({ value: true }));
26
- exports.execAsync = void 0;
27
- const child_process = __webpack_require__(35317);
28
- const util = __webpack_require__(39023);
29
- exports.execAsync = util.promisify(child_process.exec);
30
- //# sourceMappingURL=execAsync.js.map
31
-
32
- /***/ }),
33
-
34
- /***/ 48558:
35
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
-
37
-
38
- /*
39
- * Copyright The OpenTelemetry Authors
40
- *
41
- * Licensed under the Apache License, Version 2.0 (the "License");
42
- * you may not use this file except in compliance with the License.
43
- * You may obtain a copy of the License at
44
- *
45
- * https://www.apache.org/licenses/LICENSE-2.0
46
- *
47
- * Unless required by applicable law or agreed to in writing, software
48
- * distributed under the License is distributed on an "AS IS" BASIS,
49
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
- * See the License for the specific language governing permissions and
51
- * limitations under the License.
52
- */
53
- Object.defineProperty(exports, "__esModule", ({ value: true }));
54
- exports.getMachineId = void 0;
55
- const process = __webpack_require__(932);
56
- const execAsync_1 = __webpack_require__(42006);
57
- const api_1 = __webpack_require__(63914);
58
- async function getMachineId() {
59
- const args = 'QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid';
60
- let command = '%windir%\\System32\\REG.exe';
61
- if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {
62
- command = '%windir%\\sysnative\\cmd.exe /c ' + command;
63
- }
64
- try {
65
- const result = await (0, execAsync_1.execAsync)(`${command} ${args}`);
66
- const parts = result.stdout.split('REG_SZ');
67
- if (parts.length === 2) {
68
- return parts[1].trim();
69
- }
70
- }
71
- catch (e) {
72
- api_1.diag.debug(`error reading machine id: ${e}`);
73
- }
74
- return undefined;
75
- }
76
- exports.getMachineId = getMachineId;
77
- //# sourceMappingURL=getMachineId-win.js.map
78
-
79
- /***/ })
80
-
81
- };
82
- ;
package/dist/69.index.js DELETED
@@ -1,38 +0,0 @@
1
- "use strict";
2
- exports.id = 69;
3
- exports.ids = [69];
4
- exports.modules = {
5
-
6
- /***/ 72069:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
-
10
- /*
11
- * Copyright The OpenTelemetry Authors
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * https://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- Object.defineProperty(exports, "__esModule", ({ value: true }));
26
- exports.getMachineId = void 0;
27
- const api_1 = __webpack_require__(63914);
28
- async function getMachineId() {
29
- api_1.diag.debug('could not read machine-id: unsupported platform');
30
- return undefined;
31
- }
32
- exports.getMachineId = getMachineId;
33
- //# sourceMappingURL=getMachineId-unsupported.js.map
34
-
35
- /***/ })
36
-
37
- };
38
- ;
package/dist/715.index.js DELETED
@@ -1,38 +0,0 @@
1
- "use strict";
2
- exports.id = 715;
3
- exports.ids = [715];
4
- exports.modules = {
5
-
6
- /***/ 34715:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
-
10
- /*
11
- * Copyright The OpenTelemetry Authors
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * https://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- Object.defineProperty(exports, "__esModule", ({ value: true }));
26
- exports.getMachineId = void 0;
27
- const api_1 = __webpack_require__(63914);
28
- async function getMachineId() {
29
- api_1.diag.debug('could not read machine-id: unsupported platform');
30
- return undefined;
31
- }
32
- exports.getMachineId = getMachineId;
33
- //# sourceMappingURL=getMachineId-unsupported.js.map
34
-
35
- /***/ })
36
-
37
- };
38
- ;
package/dist/737.index.js DELETED
@@ -1,82 +0,0 @@
1
- "use strict";
2
- exports.id = 737;
3
- exports.ids = [737];
4
- exports.modules = {
5
-
6
- /***/ 65219:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
-
10
- /*
11
- * Copyright The OpenTelemetry Authors
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * https://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- Object.defineProperty(exports, "__esModule", ({ value: true }));
26
- exports.execAsync = void 0;
27
- const child_process = __webpack_require__(35317);
28
- const util = __webpack_require__(39023);
29
- exports.execAsync = util.promisify(child_process.exec);
30
- //# sourceMappingURL=execAsync.js.map
31
-
32
- /***/ }),
33
-
34
- /***/ 29737:
35
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
-
37
-
38
- /*
39
- * Copyright The OpenTelemetry Authors
40
- *
41
- * Licensed under the Apache License, Version 2.0 (the "License");
42
- * you may not use this file except in compliance with the License.
43
- * You may obtain a copy of the License at
44
- *
45
- * https://www.apache.org/licenses/LICENSE-2.0
46
- *
47
- * Unless required by applicable law or agreed to in writing, software
48
- * distributed under the License is distributed on an "AS IS" BASIS,
49
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
- * See the License for the specific language governing permissions and
51
- * limitations under the License.
52
- */
53
- Object.defineProperty(exports, "__esModule", ({ value: true }));
54
- exports.getMachineId = void 0;
55
- const process = __webpack_require__(932);
56
- const execAsync_1 = __webpack_require__(65219);
57
- const api_1 = __webpack_require__(63914);
58
- async function getMachineId() {
59
- const args = 'QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid';
60
- let command = '%windir%\\System32\\REG.exe';
61
- if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {
62
- command = '%windir%\\sysnative\\cmd.exe /c ' + command;
63
- }
64
- try {
65
- const result = await (0, execAsync_1.execAsync)(`${command} ${args}`);
66
- const parts = result.stdout.split('REG_SZ');
67
- if (parts.length === 2) {
68
- return parts[1].trim();
69
- }
70
- }
71
- catch (e) {
72
- api_1.diag.debug(`error reading machine id: ${e}`);
73
- }
74
- return undefined;
75
- }
76
- exports.getMachineId = getMachineId;
77
- //# sourceMappingURL=getMachineId-win.js.map
78
-
79
- /***/ })
80
-
81
- };
82
- ;
package/dist/760.index.js DELETED
@@ -1,81 +0,0 @@
1
- "use strict";
2
- exports.id = 760;
3
- exports.ids = [760];
4
- exports.modules = {
5
-
6
- /***/ 67049:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
-
10
- /*
11
- * Copyright The OpenTelemetry Authors
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * https://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- Object.defineProperty(exports, "__esModule", ({ value: true }));
26
- exports.execAsync = void 0;
27
- const child_process = __webpack_require__(35317);
28
- const util = __webpack_require__(39023);
29
- exports.execAsync = util.promisify(child_process.exec);
30
- //# sourceMappingURL=execAsync.js.map
31
-
32
- /***/ }),
33
-
34
- /***/ 89760:
35
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
-
37
-
38
- /*
39
- * Copyright The OpenTelemetry Authors
40
- *
41
- * Licensed under the Apache License, Version 2.0 (the "License");
42
- * you may not use this file except in compliance with the License.
43
- * You may obtain a copy of the License at
44
- *
45
- * https://www.apache.org/licenses/LICENSE-2.0
46
- *
47
- * Unless required by applicable law or agreed to in writing, software
48
- * distributed under the License is distributed on an "AS IS" BASIS,
49
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
- * See the License for the specific language governing permissions and
51
- * limitations under the License.
52
- */
53
- Object.defineProperty(exports, "__esModule", ({ value: true }));
54
- exports.getMachineId = void 0;
55
- const fs_1 = __webpack_require__(79896);
56
- const execAsync_1 = __webpack_require__(67049);
57
- const api_1 = __webpack_require__(63914);
58
- async function getMachineId() {
59
- try {
60
- const result = await fs_1.promises.readFile('/etc/hostid', { encoding: 'utf8' });
61
- return result.trim();
62
- }
63
- catch (e) {
64
- api_1.diag.debug(`error reading machine id: ${e}`);
65
- }
66
- try {
67
- const result = await (0, execAsync_1.execAsync)('kenv -q smbios.system.uuid');
68
- return result.stdout.trim();
69
- }
70
- catch (e) {
71
- api_1.diag.debug(`error reading machine id: ${e}`);
72
- }
73
- return undefined;
74
- }
75
- exports.getMachineId = getMachineId;
76
- //# sourceMappingURL=getMachineId-bsd.js.map
77
-
78
- /***/ })
79
-
80
- };
81
- ;
package/dist/834.index.js DELETED
@@ -1,48 +0,0 @@
1
- "use strict";
2
- exports.id = 834;
3
- exports.ids = [834];
4
- exports.modules = {
5
-
6
- /***/ 71834:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
-
10
- Object.defineProperty(exports, "__esModule", ({ value: true }));
11
- exports.getMachineId = void 0;
12
- /*
13
- * Copyright The OpenTelemetry Authors
14
- *
15
- * Licensed under the Apache License, Version 2.0 (the "License");
16
- * you may not use this file except in compliance with the License.
17
- * You may obtain a copy of the License at
18
- *
19
- * https://www.apache.org/licenses/LICENSE-2.0
20
- *
21
- * Unless required by applicable law or agreed to in writing, software
22
- * distributed under the License is distributed on an "AS IS" BASIS,
23
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
- * See the License for the specific language governing permissions and
25
- * limitations under the License.
26
- */
27
- const fs_1 = __webpack_require__(79896);
28
- const api_1 = __webpack_require__(63914);
29
- async function getMachineId() {
30
- const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
31
- for (const path of paths) {
32
- try {
33
- const result = await fs_1.promises.readFile(path, { encoding: 'utf8' });
34
- return result.trim();
35
- }
36
- catch (e) {
37
- api_1.diag.debug(`error reading machine id: ${e}`);
38
- }
39
- }
40
- return undefined;
41
- }
42
- exports.getMachineId = getMachineId;
43
- //# sourceMappingURL=getMachineId-linux.js.map
44
-
45
- /***/ })
46
-
47
- };
48
- ;
package/dist/886.index.js DELETED
@@ -1,81 +0,0 @@
1
- "use strict";
2
- exports.id = 886;
3
- exports.ids = [886];
4
- exports.modules = {
5
-
6
- /***/ 95023:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
-
10
- /*
11
- * Copyright The OpenTelemetry Authors
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * https://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- Object.defineProperty(exports, "__esModule", ({ value: true }));
26
- exports.execAsync = void 0;
27
- const child_process = __webpack_require__(35317);
28
- const util = __webpack_require__(39023);
29
- exports.execAsync = util.promisify(child_process.exec);
30
- //# sourceMappingURL=execAsync.js.map
31
-
32
- /***/ }),
33
-
34
- /***/ 20886:
35
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
-
37
-
38
- /*
39
- * Copyright The OpenTelemetry Authors
40
- *
41
- * Licensed under the Apache License, Version 2.0 (the "License");
42
- * you may not use this file except in compliance with the License.
43
- * You may obtain a copy of the License at
44
- *
45
- * https://www.apache.org/licenses/LICENSE-2.0
46
- *
47
- * Unless required by applicable law or agreed to in writing, software
48
- * distributed under the License is distributed on an "AS IS" BASIS,
49
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
- * See the License for the specific language governing permissions and
51
- * limitations under the License.
52
- */
53
- Object.defineProperty(exports, "__esModule", ({ value: true }));
54
- exports.getMachineId = void 0;
55
- const fs_1 = __webpack_require__(79896);
56
- const execAsync_1 = __webpack_require__(95023);
57
- const api_1 = __webpack_require__(63914);
58
- async function getMachineId() {
59
- try {
60
- const result = await fs_1.promises.readFile('/etc/hostid', { encoding: 'utf8' });
61
- return result.trim();
62
- }
63
- catch (e) {
64
- api_1.diag.debug(`error reading machine id: ${e}`);
65
- }
66
- try {
67
- const result = await (0, execAsync_1.execAsync)('kenv -q smbios.system.uuid');
68
- return result.stdout.trim();
69
- }
70
- catch (e) {
71
- api_1.diag.debug(`error reading machine id: ${e}`);
72
- }
73
- return undefined;
74
- }
75
- exports.getMachineId = getMachineId;
76
- //# sourceMappingURL=getMachineId-bsd.js.map
77
-
78
- /***/ })
79
-
80
- };
81
- ;