Skip to content

Commit

Permalink
Merge branch 'master' into neuronull/audit1_sink_http
Browse files Browse the repository at this point in the history
  • Loading branch information
neuronull committed Sep 9, 2022
2 parents 3d3124d + f705842 commit afceb08
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 42 deletions.
18 changes: 8 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ goauth = { version = "0.13.1", optional = true }
smpl_jwt = { version = "0.7.1", default-features = false, optional = true }

# API
async-graphql = { version = "4.0.12", default-features = false, optional = true, features = ["chrono"] }
async-graphql = { version = "4.0.13", default-features = false, optional = true, features = ["chrono"] }
async-graphql-warp = { version = "4.0.12", default-features = false, optional = true }
itertools = { version = "0.10.3", default-features = false, optional = true }

Expand Down
4 changes: 2 additions & 2 deletions lib/value/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ snafu = { version = "0.7.1", default-features = false }
tracing = { version = "0.1.34", default-features = false, features = ["attributes"] }

# Optional
async-graphql = { version = "4.0.12", default-features = false, optional = true }
async-graphql = { version = "4.0.13", default-features = false, optional = true }
mlua = { version = "0.8.3", default-features = false, features = ["lua54", "send", "vendored"], optional = true}
serde = { version = "1.0.144", default-features = false, features = ["derive", "rc"], optional = true }
serde_json = { version = "1.0.85", optional = true }
Expand All @@ -32,7 +32,7 @@ test = []
arbitrary = ["dep:quickcheck"]

[dev-dependencies]
async-graphql = { version = "4.0.12", default-features = false }
async-graphql = { version = "4.0.13", default-features = false }
indoc = { version = "1.0.7", default-features = false }
quickcheck = "1.0.3"
lookup = { path = "../lookup", default-features = false, features = ["arbitrary"] }
Expand Down
27 changes: 0 additions & 27 deletions lib/vector-common/src/internal_event/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,3 @@ impl<E: std::fmt::Debug> InternalEvent for PollReadyError<E> {
Some("ServicePollReadyError")
}
}

#[derive(Debug)]
pub struct CallError<E> {
pub error: E,
pub request_id: usize,
}

impl<E: std::fmt::Debug> InternalEvent for CallError<E> {
fn emit(self) {
error!(
message = "Service call failed.",
request_id = self.request_id,
error = ?self.error,
error_type = error_type::REQUEST_FAILED,
stage = error_stage::SENDING,
);
counter!(
"component_errors_total", 1,
"error_type" => error_type::REQUEST_FAILED,
"stage" => error_stage::SENDING,
);
}

fn name(&self) -> Option<&'static str> {
Some("ServiceCallError")
}
}
2 changes: 1 addition & 1 deletion lib/vector-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
publish = false

[dependencies]
async-graphql = { version = "4.0.12", default-features = false, optional = true }
async-graphql = { version = "4.0.13", default-features = false, optional = true }
async-trait = { version = "0.1", default-features = false }
bitmask-enum = { version = "2.0.0", default-features = false }
bytes = { version = "1.2.1", default-features = false, features = ["serde"] }
Expand Down
3 changes: 2 additions & 1 deletion lib/vector-core/src/stream/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ where
) {
match result {
Err(error) => {
emit(service::CallError { error, request_id });
// `Error` and `EventsDropped` internal events are emitted in the sink retry logic.
error!(message = "Service call failed.", ?error, request_id);
finalizers.update_status(EventStatus::Rejected);
}
Ok(response) => {
Expand Down

0 comments on commit afceb08

Please sign in to comment.