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

Update amplitude destination to retain session ID #6

Merged
merged 3 commits into from
Apr 26, 2022

Conversation

MichaelGHSeg
Copy link
Contributor

According to amplitude docs, a session should include all events within 5 minutes of each other. This changes the previous implementation's behavior of creating a new session ID ever 5 minutes.

According to amplitude docs, a session should include all events within 5 minutes of each other.  This changes the previous implementation's behavior of creating a new session ID ever 5 minutes.
@MichaelGHSeg MichaelGHSeg self-assigned this Apr 7, 2022
@MichaelGHSeg MichaelGHSeg marked this pull request as draft April 7, 2022 19:59
@MichaelGHSeg MichaelGHSeg marked this pull request as ready for review April 21, 2022 20:18
@MichaelGHSeg
Copy link
Contributor Author

Tested manually in debugger by setting the time delay to 10 sec and observing the behavior. Session ID changed if no change was sent for longer than 10 sec, but stayed the same as long as events were sent repeatedly under the time limit.

Copy link

@prayansh prayansh left a comment

Choose a reason for hiding this comment

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

LGTM, but one thing they also mentioned was that the fireTime is configurable, maybe we should move that property to a constructor parameter and default it to 5 mins.

Copy link

@prayansh prayansh left a comment

Choose a reason for hiding this comment

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

🚢

@MichaelGHSeg MichaelGHSeg merged commit c32db12 into main Apr 26, 2022
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.

2 participants