Commit 4465d16
authored
telemetry(inline-suggestion): Fix incorrect clientComponentLatency@preprocessLatency (#6320)
## Problem
t1: user trigger inline suggestion either automatically or manually
t2: start building request with editor context
t3: done building request
t4: call service API
PreprocessLatency is supposed to denote `t3 - t1`, whereas current
implementation isn't which has been using
`codewhispererPreprocessingLatency: session.fetchCredentialStartTime -
session.invokeSuggestionStartTime,`
## Solution
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.1 parent 2c01b0d commit 4465d16
File tree
4 files changed
+81
-19
lines changed- packages
- amazonq/test/unit/codewhisperer/util
- core/src/codewhisperer
- service
- util
4 files changed
+81
-19
lines changedLines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
41 | 83 | | |
42 | 84 | | |
43 | 85 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
| |||
582 | 591 | | |
583 | 592 | | |
584 | 593 | | |
| 594 | + | |
585 | 595 | | |
586 | | - | |
| 596 | + | |
587 | 597 | | |
588 | 598 | | |
589 | | - | |
590 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
591 | 608 | | |
592 | 609 | | |
593 | 610 | | |
| |||
597 | 614 | | |
598 | 615 | | |
599 | 616 | | |
600 | | - | |
601 | | - | |
| 617 | + | |
| 618 | + | |
602 | 619 | | |
603 | 620 | | |
604 | 621 | | |
605 | 622 | | |
606 | | - | |
607 | | - | |
| 623 | + | |
| 624 | + | |
608 | 625 | | |
609 | 626 | | |
610 | 627 | | |
611 | 628 | | |
612 | | - | |
| 629 | + | |
613 | 630 | | |
614 | 631 | | |
615 | 632 | | |
616 | 633 | | |
617 | 634 | | |
618 | | - | |
619 | | - | |
| 635 | + | |
| 636 | + | |
620 | 637 | | |
621 | 638 | | |
622 | 639 | | |
623 | 640 | | |
624 | 641 | | |
625 | 642 | | |
626 | | - | |
| 643 | + | |
627 | 644 | | |
628 | 645 | | |
629 | 646 | | |
630 | | - | |
| 647 | + | |
631 | 648 | | |
632 | 649 | | |
633 | 650 | | |
634 | 651 | | |
635 | | - | |
| 652 | + | |
636 | 653 | | |
637 | | - | |
638 | | - | |
639 | | - | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
640 | 657 | | |
641 | 658 | | |
642 | 659 | | |
| |||
0 commit comments