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

Set initial currentSessionId, log only with debug flag on. #335

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

git-lucky
Copy link

@git-lucky git-lucky commented Jan 10, 2025

Problem

We are seeing constant logs about the replay session Id not being rotated and it appeared to be a something going wrong. In reality it seems that this was just meant to be debug info so I wrapped it in that flag. Upon closer inspection it seems that the currentSessionId will never have a value so this is now being set after the session replay starts with a session Id the first time.

Changes

  1. Now setting a value to currentSessionId after session replay starts with one the first time.
  2. Wrapped the log so its debug only.

Release info Sub-libraries affected

Bump level

  • Major
  • Minor
  • Patch

Libraries affected

  • All of them
  • posthog-web
  • posthog-node
  • posthog-react-native

Changelog notes

  • Fixed currentSessionId initialization and logging

Tim Hise added 2 commits January 10, 2025 15:26
…Id for the first time after a sessionId after starting session replay with it, and a broken test fix
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.

1 participant