import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
import {
  diag,
  init_esm
} from "./chunk-MV6JXS2P.js";
import {
  __esm
} from "./chunk-KVSDPGUI.js";

// ../../node_modules/.pnpm/@opentelemetry+resources@2.1.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js
import { promises as fs } from "fs";
async function getMachineId() {
  const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
  for (const path of paths) {
    try {
      const result = await fs.readFile(path, { encoding: "utf8" });
      return result.trim();
    } catch (e) {
      diag.debug(`error reading machine id: ${e}`);
    }
  }
  return void 0;
}
var init_getMachineId_linux = __esm({
  "../../node_modules/.pnpm/@opentelemetry+resources@2.1.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js"() {
    init_esm();
  }
});
init_getMachineId_linux();
export {
  getMachineId
};
//# sourceMappingURL=getMachineId-linux-L5XPRJBN.js.map