Skip to content

Commit 0e3495f

Browse files
authored
Merge branch 'main' into update-http-example
2 parents eee835e + 224289e commit 0e3495f

File tree

6 files changed

+4
-30
lines changed

6 files changed

+4
-30
lines changed

.cspell.json

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"Dirkjan",
3838
"EPYC",
3939
"hasher",
40-
"isahc",
4140
"Isobel",
4241
"jaegertracing",
4342
"Kühle",

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ futures-executor = "0.3"
2525
futures-util = { version = "0.3", default-features = false }
2626
hyper = { version = "0.14", default-features = false }
2727
http = { version = "0.2", default-features = false }
28-
isahc = { version = "1.4", default-features = false }
2928
log = "0.4.21"
3029
once_cell = "1.13"
3130
ordered-float = "4.0"
@@ -46,4 +45,4 @@ tokio-stream = "0.1.1"
4645
tracing = { version = "0.1", default-features = false }
4746
tracing-core = { version = "0.1", default-features = false }
4847
tracing-subscriber = { version = "0.3", default-features = false }
49-
url = { version = "=2.5.0", default-features = false } #pinning the version supporting rustc 1.65
48+
url = { version = "2.5", default-features = false }

opentelemetry-http/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## vNext
44

55
- **Breaking** Correct the misspelling of "webkpi" to "webpki" in features [#1842](https://github.com/open-telemetry/opentelemetry-rust/pull/1842)
6+
- **Breaking** Remove support for the `isahc` HTTP client [#1924](https://github.com/open-telemetry/opentelemetry-rust/pull/1924)
67

78
## v0.12.0
89

opentelemetry-http/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ async-trait = { workspace = true }
1818
bytes = { workspace = true }
1919
http = { workspace = true }
2020
hyper = { workspace = true, features = ["http2", "client", "tcp"], optional = true }
21-
isahc = { workspace = true, optional = true }
2221
opentelemetry = { version = "0.23", path = "../opentelemetry", features = ["trace"] }
2322
reqwest = { workspace = true, features = ["blocking"], optional = true }
2423
tokio = { workspace = true, features = ["time"], optional = true }

opentelemetry-http/src/lib.rs

-26
Original file line numberDiff line numberDiff line change
@@ -99,32 +99,6 @@ mod reqwest {
9999
}
100100
}
101101

102-
#[cfg(feature = "isahc")]
103-
mod isahc {
104-
use crate::ResponseExt;
105-
106-
use super::{async_trait, Bytes, HttpClient, HttpError, Request, Response};
107-
use isahc::AsyncReadResponseExt;
108-
use std::convert::TryInto as _;
109-
110-
#[async_trait]
111-
impl HttpClient for isahc::HttpClient {
112-
async fn send(&self, request: Request<Vec<u8>>) -> Result<Response<Bytes>, HttpError> {
113-
let mut response = self.send_async(request).await?;
114-
let mut bytes = Vec::with_capacity(response.body().len().unwrap_or(0).try_into()?);
115-
response.copy_to(&mut bytes).await?;
116-
117-
let headers = std::mem::take(response.headers_mut());
118-
let mut http_response = Response::builder()
119-
.status(response.status().as_u16())
120-
.body(bytes.into())?;
121-
*http_response.headers_mut() = headers;
122-
123-
Ok(http_response.error_for_status()?)
124-
}
125-
}
126-
}
127-
128102
#[cfg(feature = "hyper")]
129103
pub mod hyper {
130104
use crate::ResponseExt;

scripts/patch_dependencies.sh

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ function patch_version() {
66
cargo update -p $1:$latest_version --precise $2
77
}
88

9+
patch_version cc 1.0.105
10+
patch_version url 2.5.0

0 commit comments

Comments
 (0)