Skip to content

Commit

Permalink
Use uuid library instead of reading from /proc
Browse files Browse the repository at this point in the history
  • Loading branch information
23Skidoo committed Jul 23, 2024
1 parent a8f10c5 commit 58dd8bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ opentelemetry-jaeger = {version = "0.22", features = ["integration_test"]}
prima_bridge = "0.16"
tokio = {version = "1.17", features = ["rt", "macros", "rt-multi-thread"]}
tracing-actix-web = {version = "0.7.11", features = ["opentelemetry_0_23"]}
uuid = {version = "1.10", features = ["v4"]}
4 changes: 2 additions & 2 deletions tests/e2e/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async fn get_spans(f: impl FnOnce(), collector_url: &str) -> Option<Vec<Span>> {
std::env::set_var("RUST_LOG", "info");

// Unique id for this test run
let seed = std::fs::read_to_string("/proc/sys/kernel/random/uuid").unwrap();
let seed = uuid::Uuid::new_v4();
let service_name = format!("e2e-test-{seed}");

let query_api_url = "http://jaeger:16685/";
Expand Down Expand Up @@ -125,7 +125,7 @@ async fn error_layer_enrich_errored_spans() {
std::env::set_var("RUST_LOG", "info");

// Unique id for this test run
let seed = std::fs::read_to_string("/proc/sys/kernel/random/uuid").unwrap();
let seed = uuid::Uuid::new_v4();
let service_name = format!("e2e-test-{seed}");

let query_api_url = "http://jaeger:16685/";
Expand Down

0 comments on commit 58dd8bc

Please sign in to comment.