Skip to content

Commit

Permalink
readded logging and metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemumma committed Mar 21, 2024
1 parent b980c51 commit a57add7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions snuba/query/processors/logical/filter_in_select_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@ def process_mql_query(
new_condition = self.get_select_filter(query)
if new_condition is not None:
query.add_condition_to_ast(new_condition)
except ValueError:
raise
metrics.increment("kyles_optimizer_optimized")
except Exception:
logger.warning(
"Failed during optimization", exc_info=True, extra={"query": query}
)
return

def get_select_filter(
self,
Expand Down

0 comments on commit a57add7

Please sign in to comment.