* fix(deps): bump @sentry/node to 10.71.0 Co-Authored-By: Claude <[email protected]> * Fail verify-dist on untracked files in dist/ --------- Co-authored-by: Claude <[email protected]>
37 lines
917 B
JavaScript
37 lines
917 B
JavaScript
"use strict";
|
|
exports.id = 319;
|
|
exports.ids = [319];
|
|
exports.modules = {
|
|
|
|
/***/ 8319:
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
exports.getMachineId = void 0;
|
|
/*
|
|
* Copyright The OpenTelemetry Authors
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
const fs_1 = __webpack_require__(57147);
|
|
const api_1 = __webpack_require__(65163);
|
|
async function getMachineId() {
|
|
const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
|
|
for (const path of paths) {
|
|
try {
|
|
const result = await fs_1.promises.readFile(path, { encoding: 'utf8' });
|
|
return result.trim();
|
|
}
|
|
catch (e) {
|
|
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
}
|
|
}
|
|
return undefined;
|
|
}
|
|
exports.getMachineId = getMachineId;
|
|
//# sourceMappingURL=getMachineId-linux.js.map
|
|
|
|
/***/ })
|
|
|
|
};
|
|
; |