Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: error-free session_count V.S. No. of sessions experienced error #540

Open
ShawneeY opened this issue Apr 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ShawneeY
Copy link

ShawneeY commented Apr 12, 2024

error-free session_count

Currently the built-in metrics provided by RUM includes:

  1. SessionCount
  2. JsErrorCount

We are interested in knowing error-free session_count and No. of sessions experienced at least 1 JS error to accurately indicate system health.

No. of sessions experienced at least 1 JS error can be queried in CloudWatch Log insights:

fields @timestamp, @message
| filter event_type = 'com.amazon.rum.js_error_event'
| stats count_distinct(user_details.sessionId) by bin(5min)

Then, error-free session count can be deduced by SessionCount - ErrorSessionCount in the same periods.

However, it seems difficult to convert the above query to a metrics filter because session_id is added as a dimension but CloudWatch intentionally disallows publishing metrics with dimensions of more than 1000 unique values to prevent misuse.

Is it possible to inform:

  1. how to count error-free session ?
  2. OR add such metrics as one of RUM's built-in metric ?

Many thanks in advance.

@ShawneeY ShawneeY added the enhancement New feature or request label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant