## ✨ chore(deps): upgrade to hyperium 1.x crates this branch performs an exciting upgrade for our proxy. this branch upgrades a number of our dependencies so that we use the 1.0 release family of the `hyper` http framework, and its ecosystem. see the [v1.0 announcement][hyper-v1] for more information. this branch upgrades the following dependencies: * `h2`: 0.3 -> 0.4 * `http`: 0.2 -> 1 * `http-body`: 0.4 -> 1 * `hyper`: 0.14.32 -> 1 * `prost`: 0.12 -> 0.13 * `prost-build`: 0.12 -> 0.13 * `prost-types`: 0.12 -> 0.13 * `tonic`: 0.10 -> 0.12 * `tonic-build`: 0.10 -> 0.12 a `hyper-util` dependency is added, which provides among other things, legacy-compatible interfaces such as `hyper_util::client::legacy::Client`, or glue to use `hyper` with the tokio runtime. see <https://docs.rs/hyper-util/latest/hyper_util/> for more information. a `http-body-util` dependency is added, which provides a `BodyExt` trait and a channel-backed body for use in unit tests. the `deprecated` feature flag that was active on our `0.14` hyper dependency has been removed, along with the `stream` and `runtime` feature flags. the `linkerd2-proxy-api` dependency is updated. see: <https://github.com/linkerd/linkerd2-proxy-api/pull/421> ### 📝 notes for review bear particular attention to changes involving `http_body::Body` middleware. the change from two separate `poll_data()` and `poll_trailers()` functions, to a single `poll_frame()` method, induces some subtle changes to various pieces of middleware. also bear in mind that failing to set a timer, in our case `hyper_util::rt::TokioTimer`, can cause http/2 clients, or http/1 and http/2 servers, to panic. make sure that any uses of `hyper::server::conn::http1::Builder`, `hyper::client::conn::http1::Builder`, or `hyper::client::conn::http2::Builder` install a timer. ### ❗ breaking change: `l5d-proxy-error` values the `l5d-proxy-error` header can be examined to observe the cause of proxy errors encountered when sending meshed traffic. by virtue of this using a newer `hyper` client in the proxy, some error messages may in turn look different. for example, an error like `"connect timed out after 1s"` may now appear as `"client error (Connect)"`. ### 📚 other notes this work, by virtue of touching so many parts of the system, is carried out in distinct commits. an initial commit upgrades the dependencies at th workspace level. subsequent commits will not compile if the `--workspace` flag is provided, but the intent of this branch is to update each crate individually. use commands like, e.g. `cargo check --tests -p linkerd-proxy-http` to build particular crates at intermediate commits within this branch. this commit is also only the final leaf in an _extended_ line of work. this has been done to mitigate the effort of reviewing this change, and the risk of churn in the event of any unanticipated errors. see the top-level comment in https://github.com/linkerd/linkerd2/issues/8733 for an overview of all of the work that brought us to this juncture. [hyper-v1]: https://seanmonstar.com/blog/hyper-v1/ --- * chore(deps): upgrade to hyper 1.x note: this commit will not compile, code changes are intentionally elided from this commit. this commit upgrades hyper, http, tonic, prost, related dependencies, and their assorted cargo features. see <https://github.com/linkerd/linkerd2/issues/8733>. see also: * https://github.com/linkerd/linkerd2-proxy/pull/3379 * https://github.com/linkerd/linkerd2-proxy/pull/3380 * https://github.com/linkerd/linkerd2-proxy/pull/3382 * https://github.com/linkerd/linkerd2-proxy/pull/3405 * https://github.com/hyperium/hyper/pull/3796 * https://github.com/linkerd/linkerd2-proxy/pull/3411 * https://github.com/linkerd/linkerd2-proxy/pull/3421 * https://github.com/linkerd/linkerd2-proxy/pull/3427 * https://github.com/linkerd/linkerd2-proxy/pull/3428 * https://github.com/linkerd/linkerd2-proxy/pull/3432 * https://github.com/linkerd/linkerd2-proxy/pull/3433 * https://github.com/linkerd/linkerd2-proxy/pull/3444 * https://github.com/linkerd/linkerd2-proxy/pull/3445 * https://github.com/linkerd/linkerd2-proxy/pull/3454 * https://github.com/linkerd/linkerd2-proxy/pull/3455 * https://github.com/linkerd/linkerd2-proxy/pull/3456 * https://github.com/linkerd/linkerd2-proxy/pull/3457 * https://github.com/linkerd/linkerd2-proxy/pull/3461 * https://github.com/linkerd/linkerd2-proxy/pull/3459 * https://github.com/linkerd/linkerd2-proxy/pull/3465 * https://github.com/linkerd/linkerd2-proxy/pull/3466 * https://github.com/linkerd/linkerd2-proxy/pull/3467 * https://github.com/linkerd/linkerd2-proxy/pull/3468 * https://github.com/linkerd/linkerd2-proxy-api/pull/421 * https://github.com/linkerd/linkerd2/pull/13492 * https://github.com/linkerd/linkerd2/pull/13493 * https://github.com/hyperium/hyper/pull/3816 * https://github.com/linkerd/linkerd2-proxy/pull/3472 * https://github.com/linkerd/linkerd2-proxy/pull/3473 * https://github.com/linkerd/linkerd2-proxy/pull/3479 * https://github.com/tokio-rs/tokio/pull/7059 * https://github.com/linkerd/linkerd2-proxy/pull/3509 * https://github.com/hyperium/http-body/pull/140/ * https://github.com/linkerd/linkerd2-proxy/pull/3515 * https://github.com/hyperium/http-body/pull/141/ * https://github.com/linkerd/linkerd2-proxy/pull/3530 * https://github.com/linkerd/linkerd2-proxy/pull/3531 * https://github.com/linkerd/linkerd2-proxy/pull/3540 * https://github.com/linkerd/linkerd2-proxy/pull/3556 * https://github.com/linkerd/linkerd2-proxy/pull/3558 * https://github.com/linkerd/linkerd2-proxy/pull/3559 * https://github.com/linkerd/linkerd2-proxy/pull/3564 * https://github.com/linkerd/linkerd2-proxy/pull/3567 * https://github.com/linkerd/linkerd2-proxy/pull/3573 * https://github.com/linkerd/linkerd2-proxy/pull/3583 * https://github.com/hyperium/http-body/pull/144 * https://github.com/linkerd/linkerd2-proxy/pull/3585 * https://github.com/linkerd/linkerd2-proxy/pull/3586 * https://github.com/linkerd/linkerd2-proxy/pull/3597 * https://github.com/linkerd/linkerd2-proxy/pull/3598 * https://github.com/linkerd/linkerd2-proxy/pull/3611 * https://github.com/linkerd/linkerd2-proxy/pull/3614 * https://github.com/linkerd/linkerd2-proxy/pull/3615 * https://github.com/linkerd/linkerd2-proxy/pull/3616 * https://github.com/linkerd/linkerd2-proxy/pull/3647 * https://github.com/linkerd/linkerd2-proxy/pull/3651 * https://github.com/linkerd/linkerd2-proxy/pull/3653 * https://github.com/linkerd/linkerd2-proxy/pull/3654 * https://github.com/linkerd/linkerd2-proxy/pull/3655 * https://github.com/linkerd/linkerd2-proxy/pull/3656 * https://github.com/linkerd/linkerd2-proxy/pull/3657 * https://github.com/linkerd/linkerd2-proxy/pull/3660 * https://github.com/linkerd/linkerd2-proxy/pull/3671 * https://github.com/linkerd/linkerd2-proxy/pull/3672 * https://github.com/linkerd/linkerd2-proxy/pull/3673 * https://github.com/linkerd/linkerd2-proxy/pull/3676 * https://github.com/hyperium/http-body/pull/147 * https://github.com/linkerd/linkerd2-proxy/pull/3692 * https://github.com/linkerd/linkerd2-proxy/pull/3699 * https://github.com/linkerd/linkerd2-proxy/pull/3700 * https://github.com/linkerd/linkerd2-proxy/pull/3701 * https://github.com/linkerd/linkerd2-proxy/pull/3708 * https://github.com/linkerd/drain-rs/pull/36 * https://github.com/linkerd/linkerd2-proxy/pull/3715 * https://github.com/linkerd/linkerd2-proxy/pull/3717 * https://github.com/eminence/procfs/pull/340 --- squash: chore(deps): add hyper-util workspace dependency chore(deps): add http-body-util workspace dependency chore(deps): upgrade linkerd2-proxy-api this commit represents main as of linkerd/linkerd2-proxy-api#421. Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/box): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(hyper-balance): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/retain): ugrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/stream-timeouts): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/classify): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/upgrade): upgrade to hyper 1.x NOTE: there is a comment noting that the upgrade middleware does not expect to be cloneable. it is unfortunately, however, at odds with the new bounds expected of extensions. so, `Http11Upgrade` is now Clone'able, but a comment is left in place noting this weakened invariant. it's worth investigating how upgrades have changed since, in more detail, but for the current moment we are interested in being especially conservative about changing behavior, and focusing on api changes like `Body::poll_frame(..)`. Signed-off-by: katelyn martin <kate@buoyant.io> * chore(metrics): upgrade to hyper 1.x a brief note; this commit happened to tickle an unfortunate sharp edge in `BoxBody` and `Full`'s respective constructors. type inference could not figure out how to construct the body, so we refrain from boxing the response body now. Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/metrics): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/prom): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/insert): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/retry): deprecate linkerd-http-body-compat Signed-off-by: katelyn martin <kate@buoyant.io> * chore(mock/http-body): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/retry): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(proxy/tap): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(proxy/http): update to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(app/core): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(app/test): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(app/admin): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(app/outbound): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(app/inbound): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(app/integration): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(app): upgrade to hyper 1.x Signed-off-by: katelyn martin <kate@buoyant.io> * chore(transport-header): update generated code Signed-off-by: katelyn martin <kate@buoyant.io> * chore(spiffe-proto): update generated code Signed-off-by: katelyn martin <kate@buoyant.io> * chore(opencensus-proto): update generated code Signed-off-by: katelyn martin <kate@buoyant.io> * chore(opentelemetry-proto): update generated code Signed-off-by: katelyn martin <kate@buoyant.io> * chore(deny.toml): update cargo-deny directives this commit updates the contents of `deny.toml`. Signed-off-by: katelyn martin <kate@buoyant.io> * chore: `compile` has been renamed to `compile_protos` this addresses deprecation warnings, updating calls to a function that has since been renamed. Signed-off-by: katelyn martin <kate@buoyant.io> * chore(deps): remove `linkerd-http-body-compat` dependencies this commit removes this crate, which we added to future proof code for this upgrade, from its dependents. Signed-off-by: katelyn martin <kate@buoyant.io> * chore(http/body-compat): remove `linkerd-http-body-compat` crate Signed-off-by: katelyn martin <kate@buoyant.io> * chore(deps): update to drain 0.2.1 see https://github.com/linkerd/drain-rs/pull/41. Signed-off-by: katelyn martin <kate@buoyant.io> --------- Signed-off-by: katelyn martin <kate@buoyant.io> |
||
|---|---|---|
| .. | ||
| opencensus/proto | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| README.md | ||
README.md
opencensus-proto
This library mirrors parts of the
opencensus-proto
repo, with the non-tracing and build-related components removed.
License
Copyright 2019, OpenCensus Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.