summaryrefslogtreecommitdiff
path: root/runtime/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lib.rs')
-rw-r--r--runtime/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/lib.rs b/runtime/lib.rs
index 21b61e1c0..6fb8c5f3d 100644
--- a/runtime/lib.rs
+++ b/runtime/lib.rs
@@ -140,6 +140,12 @@ pub static UNSTABLE_GRANULAR_FLAGS: &[UnstableGranularFlag] = &[
},
];
+pub fn exit(code: i32) -> ! {
+ crate::ops::otel::flush();
+ #[allow(clippy::disallowed_methods)]
+ std::process::exit(code);
+}
+
#[cfg(test)]
mod test {
use super::*;