We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a3f4e commit 67b30deCopy full SHA for 67b30de
opentelemetry-resource-detectors/src/host.rs
@@ -52,6 +52,7 @@ fn host_id_detect() -> Option<String> {
52
let dbus_machine_id_path = Path::new("/var/lib/dbus/machine-id");
53
read_to_string(machine_id_path)
54
.or_else(|_| read_to_string(dbus_machine_id_path))
55
+ .map(|id| id.trim().to_string())
56
.ok()
57
}
58
0 commit comments