fixed some typos in comments and Dockerfile (#25)
Signed-off-by: Markus Jais <markusjais@googlemail.com>
This commit is contained in:
parent
9a19457ca1
commit
7788f60e0e
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
# When PROXY_UNOPTIMIZED is set and not empty, unoptimized rust artifacts are produced.
|
||||
# This reduces build time and produces binaries with debug symbols, at the expense of
|
||||
# runtime perforamnce.
|
||||
# runtime performance.
|
||||
|
||||
ARG RUST_IMAGE=rust:1.27.1
|
||||
ARG RUNTIME_IMAGE=gcr.io/linkerd-io/base:2017-10-30.01
|
||||
|
|
|
@ -69,7 +69,7 @@ where
|
|||
/// requests. The `BindsPerRequest` binding ensures that a new stack is bound for each
|
||||
/// request.
|
||||
///
|
||||
/// `Bound` serivces may be used to process an arbitrary number of requests.
|
||||
/// `Bound` services may be used to process an arbitrary number of requests.
|
||||
pub enum Binding<B>
|
||||
where
|
||||
B: tower_h2::Body + Send + 'static,
|
||||
|
|
|
@ -7,7 +7,7 @@ use conditional::Conditional;
|
|||
|
||||
/// An individual traffic target.
|
||||
///
|
||||
/// Equality, Ordering, and hashability is determined soley by the Endpoint's address.
|
||||
/// Equality, Ordering, and hashability is determined solely by the Endpoint's address.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct Endpoint {
|
||||
address: SocketAddr,
|
||||
|
|
|
@ -28,7 +28,7 @@ pub struct MakeControl {
|
|||
/// `Control` exposes a `Stream` that summarizes events accumulated over the past
|
||||
/// `flush_interval`.
|
||||
///
|
||||
/// As `Control` is polled, events are proceesed for the purposes of metrics export _as
|
||||
/// As `Control` is polled, events are processed for the purposes of metrics export _as
|
||||
/// well as_ for Tap, which supports subscribing to a stream of events that match
|
||||
/// criteria.
|
||||
///
|
||||
|
|
|
@ -17,7 +17,7 @@ pub use self::sensor::Sensors;
|
|||
|
||||
/// Creates proxy-specific runtime telemetry.
|
||||
///
|
||||
/// [`Sensors`] hide the details of how telemetry is recorded, but expose proxy utilties
|
||||
/// [`Sensors`] hide the details of how telemetry is recorded, but expose proxy utilities
|
||||
/// that support telemetry.
|
||||
///
|
||||
/// [`Control`] drives processing of all telemetry events for tapping as well as metrics
|
||||
|
|
|
@ -28,7 +28,7 @@ impl Protocol {
|
|||
let mut headers = [httparse::EMPTY_HEADER; 0];
|
||||
let mut req = httparse::Request::new(&mut headers);
|
||||
match req.parse(bytes) {
|
||||
// Ok(Compelete) or Ok(Partial) both mean it looks like HTTP1!
|
||||
// Ok(Complete) or Ok(Partial) both mean it looks like HTTP1!
|
||||
//
|
||||
// If we got past the first line, we'll see TooManyHeaders,
|
||||
// because we passed an array of 0 headers to parse into. That's fine!
|
||||
|
|
|
@ -311,7 +311,7 @@ fn metrics_endpoint_inbound_response_latency() {
|
|||
assert_contains!(metrics.get("/metrics"),
|
||||
"response_latency_ms_bucket{authority=\"tele.test.svc.cluster.local\",direction=\"inbound\",tls=\"disabled\",classification=\"success\",status_code=\"200\",le=\"50\"} 1");
|
||||
// 1000ms bucket should be incremented as well, since it counts *all*
|
||||
// bservations less than or equal to 1000ms, even if they also increment
|
||||
// observations less than or equal to 1000ms, even if they also increment
|
||||
// other buckets.
|
||||
assert_contains!(metrics.get("/metrics"),
|
||||
"response_latency_ms_bucket{authority=\"tele.test.svc.cluster.local\",direction=\"inbound\",tls=\"disabled\",classification=\"success\",status_code=\"200\",le=\"1000\"} 2");
|
||||
|
|
Loading…
Reference in New Issue