Skip to content

Conversation

@chungjac
Copy link
Contributor

Premature Builder ID Session Expiration Definition

/ Metric for premature expiration, specifically for BuilderId since we know the expected expiration time
// Basically, if the user has to log in to the browser again, we look at the time diff between last login.
// If the diff is too early (< 90 days) we assume premature. 

Problem

In the Premature Builder ID Session Expiration Cloudwatch graph, we do not have data for JB (either AmazonQForJetbrains or AwsToolkitForJetbrains products).

This is because we the EMF metric only gets created when our credentialStartUrl is https://view.awsapps.com/start and sessionDuration < 90 days, which means we aren't sending the correct data from the client

Solution

Emit sessionDuration field

Testing

Ran in sandbox and emit data to kibana. This is somewhat experimental, as I'm not able to fully replicate this scenario, but at least we can see what data we get in cloudwatch now after emitting this new field
Screenshot 2025-11-13 at 9 04 03 AM

@chungjac chungjac requested a review from a team as a code owner November 13, 2025 17:11
@chungjac chungjac changed the title fix: emit sessionDuration fix(amazonq): emit sessionDuration Nov 13, 2025
@chungjac chungjac closed this Nov 13, 2025
@chungjac chungjac reopened this Nov 13, 2025
@chungjac chungjac merged commit cb480ec into aws:main Nov 13, 2025
12 of 19 checks passed
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