Skip to content

Commit

Permalink
fix: only count successful queries
Browse files Browse the repository at this point in the history
  • Loading branch information
saraburns1 committed Dec 18, 2024
1 parent b14e855 commit 0300e33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ def performance_metrics(
slice, query_contexts, extra_filters
)
result = measure_chart(slice, query_context, fail_on_error)
chart_count += 1
if not result:
continue
chart_count += 1
for query in result["queries"]:
# Remove the data from the query to avoid memory issues on large
# datasets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ sql: |
query,
http_user_agent
FROM system.query_log
WHERE databases <> ['system'] AND (http_user_agent LIKE 'aspects-%') AND (type <> 'QueryStart')
WHERE databases <> ['system'] AND (http_user_agent LIKE 'aspects-%') AND (type = 'QueryFinish')
ORDER BY event_time DESC
table_name: query_log
template_params: null
Expand Down

0 comments on commit 0300e33

Please sign in to comment.