Skip to content

Commit

Permalink
add the missing skip_all on instrument attributes (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal authored Jan 5, 2022
1 parent eab6185 commit 2e941bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions apollo-router-core/src/query_planner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ pub(crate) enum PlanNode {

impl QueryPlan {
/// Validate the entire request for variables and services used.
#[tracing::instrument(name = "validation", level = "debug")]
#[tracing::instrument(name = "validation", level = "debug", skip_all)]
pub fn validate_request(
&self,
request: &Request,
service_registry: Arc<dyn ServiceRegistry>,
) -> Result<(), Response> {
let mut early_errors = Vec::new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl RouterBridgeQueryPlanner {

#[async_trait]
impl QueryPlanner for RouterBridgeQueryPlanner {
#[tracing::instrument(name = "plan", level = "debug")]
#[tracing::instrument(name = "plan", level = "debug", skip_all)]
async fn get(
&self,
query: String,
Expand Down
6 changes: 3 additions & 3 deletions apollo-router/src/apollo_router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl ApolloRouter {

#[async_trait::async_trait]
impl Router<ApolloPreparedQuery> for ApolloRouter {
#[tracing::instrument(level = "debug")]
#[tracing::instrument(level = "debug", skip_all)]
async fn prepare_query(
&self,
request: &Request,
Expand Down Expand Up @@ -103,7 +103,7 @@ impl Router<ApolloPreparedQuery> for ApolloRouter {
.await?;

tracing::debug!("query plan\n{:#?}", query_plan);
query_plan.validate_request(request, Arc::clone(&self.service_registry))?;
query_plan.validate_request(Arc::clone(&self.service_registry))?;

Ok(ApolloPreparedQuery {
query_plan,
Expand All @@ -125,7 +125,7 @@ pub struct ApolloPreparedQuery {

#[async_trait::async_trait]
impl PreparedQuery for ApolloPreparedQuery {
#[tracing::instrument(level = "debug")]
#[tracing::instrument(level = "debug", skip_all)]
async fn execute(self, request: Arc<Request>) -> ResponseStream {
let mut response = self
.query_plan
Expand Down

0 comments on commit 2e941bc

Please sign in to comment.