Skip to content

Commit a6e76a7

Browse files
committed
Fixed query issue
1 parent a1623b5 commit a6e76a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TinyInsights.Web/Services/InsightsService.Diagnostics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ public async Task<List<CountPerDay>> GetErrorDetailsPerDay(string problemId, Glo
484484
}
485485

486486
var query =
487-
$"exceptions | where{queryFilter} customDimensions.IsCrash != 'true' and problemId == '{problemId}' | summarize count_sum = sum(itemCount) by bin(timestamp,1d)";
487+
$"exceptions | where{queryFilter} and customDimensions.IsCrash != 'true' and problemId == '{problemId}' | summarize count_sum = sum(itemCount) by bin(timestamp,1d)";
488488

489489
var queryResult = await GetQueryResult<QueryResult>(query, cancellationToken);
490490
var result = new List<CountPerDay>();
@@ -503,7 +503,7 @@ public async Task<List<CountPerDay>> GetCrashDetailsPerDay(string problemId, Glo
503503
var queryFilter = GetFilter(filter);
504504

505505
var query =
506-
$"exceptions | where{queryFilter} customDimensions.IsCrash == 'true' and strcat(problemId, \" - \", outerMessage) == '{problemId}' | summarize count_sum = sum(itemCount) by bin(timestamp,1d)";
506+
$"exceptions | where{queryFilter} and customDimensions.IsCrash == 'true' and strcat(problemId, \" - \", outerMessage) == '{problemId}' | summarize count_sum = sum(itemCount) by bin(timestamp,1d)";
507507

508508
var queryResult = await GetQueryResult<QueryResult>(query, cancellationToken);
509509
var result = new List<CountPerDay>();

0 commit comments

Comments
 (0)