Skip to content

Commit c6bb955

Browse files
committed
Relax most patch versions.
1 parent d66bbd3 commit c6bb955

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Cargo.toml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,20 @@ default = ["reqwest-client"]
1616
reqwest-client = ["dep:reqwest", "opentelemetry-application-insights/reqwest-client"]
1717

1818
[dependencies]
19-
tracing = { version = "0.1.40" }
20-
opentelemetry = { version = "0.27.1" }
21-
opentelemetry_sdk = { version = "0.27.1", features = ["rt-tokio"] }
22-
opentelemetry-application-insights = { version = "0.37.0", features = ["metrics", "live-metrics"] }
23-
tracing-opentelemetry = { version = "0.28.0" }
19+
async-trait = { version = "0.1" }
20+
tracing = { version = "0.1" }
21+
opentelemetry = { version = "0.27" }
22+
opentelemetry_sdk = { version = "0.27", features = ["rt-tokio"] }
23+
opentelemetry-application-insights = { version = "0.37", features = ["metrics", "live-metrics"] }
24+
tracing-opentelemetry = { version = "0.28" }
2425
tracing-subscriber = { version = "0.3" }
2526
futures = { version = "0.3" }
26-
http = { version = "1.2.0" }
27-
http-body-util = { version = "0.1.2" }
28-
axum = { version = "0.8.1", features = ["macros"] }
29-
hyper = { version = "1.5.2", features = ["full"] }
30-
tower = { version = "0.5.2", features = ["full"] }
27+
http = { version = "1.2" }
28+
http-body-util = { version = "0.1" }
29+
axum = { version = "0.8", features = ["macros"] }
30+
hyper = { version = "1.6", features = ["full"] }
31+
tower = { version = "0.5", features = ["full"] }
3132
serde = { version = "1" }
3233
serde_json = { version = "1" }
3334
tokio = { version = "1", features = ["rt", "macros", "signal", "parking_lot"] }
34-
reqwest = { version = "0.12.12", features = ["blocking"], optional = true }
35+
reqwest = { version = "0.12", features = ["blocking"], optional = true }

src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,6 @@ impl<C, R, U, P, E> AppInsights<Ready, C, R, U, P, E> {
919919
let payload_string = format!("{:?}", p.payload().downcast_ref::<&str>());
920920
let backtrace = Backtrace::force_capture().to_string();
921921

922-
// This doesn't work because this macro prescribes the name without allowing it to be overriden.
923922
tracing::event!(
924923
name: "exception",
925924
Level::ERROR,
@@ -1140,14 +1139,14 @@ where
11401139
// Get the stringified error.
11411140
let error_string = serde_json::to_string_pretty(&error).unwrap();
11421141

1143-
// This doesn't work because this macro prescribes the name without allowing it to be overriden.
11441142
tracing::event!(
11451143
name: "exception",
11461144
Level::ERROR,
11471145
ai.customEvent.name = "exception",
11481146
"exception.type" = format!("HTTP {}", status.as_u16()),
11491147
exception.message = error.message().unwrap_or_default(),
1150-
exception.stacktrace = error.backtrace().unwrap_or_default()
1148+
exception.stacktrace = error.backtrace().unwrap_or_default(),
1149+
"exception"
11511150
);
11521151

11531152
// Recreate the body.
@@ -1187,7 +1186,7 @@ where
11871186
pub struct NoopClient;
11881187

11891188
#[cfg(not(feature = "reqwest-client"))]
1190-
#[axum::async_trait]
1189+
#[async_trait::async_trait]
11911190
impl HttpClient for NoopClient {
11921191
async fn send(&self, _request: Request<Vec<u8>>) -> Result<Response<axum::body::Bytes>, Box<dyn Error + Sync + Send>> {
11931192
Ok(Response::new(axum::body::Bytes::new()))

0 commit comments

Comments
 (0)