Skip to content

Conversation

@jpinkney-aws
Copy link
Contributor

Problem

assertTelemetry's docstring implies that it can expect partial metric shapes but doing something like:

assertTelemetry('codewhisperer_userTriggerDecision', {
    codewhispererSuggestionState: 'Reject',
})

generates a type error. This is because it expects full metrics not partial metrics

Solution

Allow assertTelemetry to accept partial metrics


  • 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.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jpinkney-aws jpinkney-aws requested a review from a team as a code owner January 31, 2025 19:38
@jpinkney-aws jpinkney-aws merged commit 30ea80a into aws:master Feb 3, 2025
26 checks passed
@jpinkney-aws jpinkney-aws deleted the partial-metrics branch February 3, 2025 13:40
s7ab059789 pushed a commit to s7ab059789/aws-toolkit-vscode that referenced this pull request Feb 19, 2025
## Problem
assertTelemetry's docstring implies that it can expect partial metric
shapes but doing something like:
```
assertTelemetry('codewhisperer_userTriggerDecision', {
    codewhispererSuggestionState: 'Reject',
})
```
generates a type error. This is because it expects full metrics not
partial metrics

## Solution
Allow assertTelemetry to accept partial metrics

---

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants