This example demonstrates how to use the tracing
crate and opentelemetry
to instrument a simple client and server in Rust.
- Start the server:
$ cd rust-server
$ cargo run --bin dice_server
- In another terminal, run the client:
$ cd rust-client
$ cargo run --bin dice_client
The client is a simple program that asks you to guess a dice roll. The server will respond with the actual roll and whether you guessed correctly.