1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Demonstrates how to use `RecordingId`s to build a single recording from multiple processes.

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let rec = rerun::RecordingStreamBuilder::new("rerun_example_shared_recording")
        .recording_id("my_shared_recording")
        .spawn()?;

    rec.log(
        "updates",
        &rerun::TextLog::new(format!("hello from process #{}", std::process::id())),
    )?;

    Ok(())
}