Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Observations from testing: - The application insights does not return the results in the same order as viewing in Azure Portal application insights when the times are identical - A single application insights entity can span more than 2 write entries, sometime we need to combine 3 or 4 together - Sometimes application insights entities can have the extact same time (and therefore shoud NOT be combined) Fixes applied: - Add the id to the sort of the api call, that way all entries that are to be combined will be next to each other in the array - The logic for combining the step labels to be display did not take into account the order of the two entries to be combined - Moved the text "The report shows......" to only be added after the last entry is combined (in cases where 3 or 4 application insights entries) - To handle where there are 3 or 4 entries to combine, after we combine the first 2 we move back up the loop (i--) again and check if there are more entries that need to be combined for this entry e.g. When 4 entries to combine, [A, B, C, D] [A + B, delete B, i-- [AB + C, delete C, i-- [ABC + D, delete D, i-- [ABCD] no action
- Loading branch information