Closed preedep closed 2 months ago
Hi. It looks like the issue is the reqwest version. When I try to build with the depenencies you listed and I look into my Cargo.lock file, I see reqwest is included in both a 0.11 and a 0.12 version and opentelemetry-http (which implements the required trait) depends on the 0.11 version.
When you switch to reqwest 0.11 in your Cargo.toml (and remove the charset and http2 features, which are new in 0.12) the code starts to compile.
I'm not sure why this happens, yet. I assume either opentelemetry-application-insights or opentelemetry-http (or both) declare the reqwest dependency incorrectly. My intention was to have 0.11 as the minium version but allow any higher version, too. I guess that's not what this does?
Okay. The default version requirement is the caret requirement: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#caret-requirements
I suppose what we really need here a https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#comparison-requirements, sth like: >=0.11
when I build , I've got error "method cannot be called on
PipelineBuilder<Client>
due to unsatisfied trait bounds" at install_batchmy dependencies