Skip to content

Conversation

@jpinkney-aws
Copy link
Contributor

Problem

It's hard to diagnose why we sometimes get some extreme values for a chat round trip. One idea is that some remote instances might be hosted in a different region and that's causing the increased values in some rare instances

Solution

Add the stringified version to the reasonDesc field temporarily so that we can get more information. This would look like:

'{"chatMessageSent":1730994444010,"editorReceivedMessage":1730994444011,"featureReceivedMessage":1730994444013,"messageDisplayed":1730994459698}',

Additional info

The numbers picked were pretty arbitrary (x > 30000 || x < -30000) but it should give us a sampling of 50+ examples in the next week. After that we can revert this code since we should have all the data we need to see if this is the issue

@jpinkney-aws jpinkney-aws requested a review from a team as a code owner November 7, 2024 16:01
@github-actions
Copy link

github-actions bot commented Nov 7, 2024

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

duration: totalDuration,
result: 'Succeeded',
traceId: metrics.traceId,
...(reasonDesc !== undefined ? { reasonDesc } : {}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure that if reasonDesc is undefined it just gets dropped. So would reasonDesc: reasonDesc work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want it to be undefined so that we don't send information when its not needed

@jpinkney-aws jpinkney-aws merged commit d4a28eb into aws:master Nov 7, 2024
13 of 17 checks passed
@justinmk3
Copy link
Contributor

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