Skip to content

Conversation

@chungjac
Copy link
Contributor

@chungjac chungjac commented Jan 21, 2026

Problem

Product needs metrics for enterprises. Therefore, backend has added a new KiroChatMessageEvent STE event which the client should send for every GenerateAssistantResponse request.

Solution

We will now also send KiroChatMessageEvent every time we send a request to GenerateAssistantResponse

2026-01-23 16:58:52.945 [info] [Info  - 4:58:52 PM] [2026-01-24T00:58:52.937Z] lserver: Invoking SendTelemetryEvent:KiroChatMessageEvent:
            "conversationId": 0fdb8000-cb73-4cb5-b7fe-3dfa6750bc2d
            "messageId": d5a8dad2-b568-4b5a-b0e8-17f760364e15
            "origin": IDE
            "userId": 247244f5-c22e-4505-a6ff-1d7194db2796
            "date": 2026-01-24
            "profileId": arn:aws:codewhisperer:us-west-2:724904587780:profile/KGGD9MM7EMNX
            "chatAgentMode": VIBE
            "chatAutonomyMode": AUTOPILOT
            "chatMessageDuration": 2827
            "modelId": CLAUDE_SONNET_4_20250514_V1_0

Testing

Confirmed that the metric shape follows smithy model provided by backend team

Tested in RTS alpha

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@chungjac chungjac requested a review from a team as a code owner January 21, 2026 22:04
@chungjac chungjac changed the title fix: emit KiroEnterpriseTelemetryEvent to STE on user chat message fix: emit KiroChatMessageEvent to STE for every GenerateAssistantResponse request Jan 23, 2026
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2026

Codecov Report

❌ Patch coverage is 89.83051% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.65%. Comparing base (dedec0d) to head (705ac89).

Files with missing lines Patch % Lines
...whisperer/src/shared/telemetry/telemetryService.ts 91.11% 4 Missing ⚠️
...nguage-server/agenticChat/agenticChatController.ts 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2594      +/-   ##
==========================================
+ Coverage   60.60%   60.65%   +0.04%     
==========================================
  Files         278      278              
  Lines       65099    65152      +53     
  Branches     4145     4153       +8     
==========================================
+ Hits        39451    39515      +64     
+ Misses      25564    25553      -11     
  Partials       84       84              
Flag Coverage Δ
unittests 60.65% <89.83%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chungjac chungjac marked this pull request as draft January 27, 2026 19:56
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.

3 participants