import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
import {
  diag,
  init_esm
} from "./chunk-LRULMAAA.js";
import {
  __esm
} from "./chunk-5H446C7X.js";

// ../../node_modules/.bun/@opentelemetry+resources@2.5.1+460773ef8ff1e07c/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/.bun/@opentelemetry+resources@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js"() {
    init_esm();
  }
});
init_getMachineId_linux();
export {
  getMachineId
};
//# sourceMappingURL=getMachineId-linux-44LJ5UJB.js.map