From a14f70230299edeefa854f831a802058201e082e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 08:30:57 +0000 Subject: [PATCH 1/2] Update rand requirement from 0.8 to 0.9 Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/0.8.0...0.9.0) --- updated-dependencies: - dependency-name: rand dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e399055..ddfc940 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ license = "MIT" [dependencies] base64 = "0.22" fxhash = "0.2" -rand = "0.8" +rand = "0.9" reqwest = { version = "0.12", default-features = false, features = [] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" From acb275cff39908145492f801d627408f4a536850 Mon Sep 17 00:00:00 2001 From: Kamil Rojewski Date: Tue, 28 Jan 2025 10:40:30 +0100 Subject: [PATCH 2/2] build fix --- src/layer.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layer.rs b/src/layer.rs index 8397aab..aba1da7 100644 --- a/src/layer.rs +++ b/src/layer.rs @@ -1,7 +1,7 @@ use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH}; use anyhow::Result as AnyResult; -use rand::prelude::*; +use rand::random; use serde_json::{json, Value}; use tracing::{ span::{Attributes, Record}, diff --git a/src/lib.rs b/src/lib.rs index 5b2de65..745bce7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ pub mod layer; pub mod model; mod visitor; -/// Constructs a new telemetry layer for given APM configuration. +/// Constructs a new telemetry layer for a given APM configuration. pub fn new_layer(service_name: String, config: Config) -> AnyResult { ApmLayer::new(config, service_name) }