-
Notifications
You must be signed in to change notification settings - Fork 148
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
✨ [RUMF-1518] implement a new API to stop the RUM session #2064
Conversation
Also adjust the function name to unify the 'delete' action naming
@@ -64,6 +65,7 @@ export function makeRumPublicApi( | |||
|
|||
let getInternalContextStrategy: StartRumResult['getInternalContext'] = () => undefined | |||
let getInitConfigurationStrategy = (): InitConfiguration | undefined => undefined | |||
let stopSessionStrategy: () => void = noop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💭 thought: we didn't discuss what should happen when calling stopSession()
before RUM is started. We might want to do something before GA
Codecov Report
@@ Coverage Diff @@
## main #2064 +/- ##
==========================================
+ Coverage 93.46% 93.58% +0.11%
==========================================
Files 159 159
Lines 5506 5515 +9
Branches 1259 1262 +3
==========================================
+ Hits 5146 5161 +15
+ Misses 360 354 -6
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
The original `findSessionCookie` suffered from the same edge case where the cookie is returned but its value is empty. Let's update it to the new implementation I went for, so it simplifies its usage.
Motivation
Let SDK users have more control on when RUM sessions should end.
Changes
stopSession()
Testing
I have gone over the contributing documentation.