Repository navigation
Conversation
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 1 Pipeline job failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 7cdde01 | Docs | View more details | Give us feedback! |
There was a problem hiding this comment.
The session-ending button remains visible on Logs-only pages, but its new unconditional DD_RUM call throws and leaves the session active.
🤖 Bits Code Review · Commit 7cdde01
| evalInWindow( | ||
| ` | ||
| document.cookie = '_dd_s=isExpired=1; expires=${expires}; path=/' | ||
| DD_RUM.stopSession() |
There was a problem hiding this comment.
Preserve session termination on Logs-only pages
On Logs-only pages, infos.cookie still displays “End current session,” but DD_RUM is absent. Clicking the button now throws a ReferenceError and leaves the session active; previously it could expire a legacy _dd_s session. Preserve a working termination fallback when RUM is unavailable. The Logs public API has no equivalent stopSession method, so simply switching SDK globals or guarding this call is insufficient.
React: 👍 useful · 👎 wrong · 😕 unclear · 👀 right, but not acting on it
What each reaction means
- 👍 Useful: correct, and you're fixing it or will.
- 👎 Wrong: the finding is incorrect, for example the bug can't happen or the code was misread.
- 😕 Unclear: you can't tell what it means or why it matters.
- 👀 Right, not acting: correct, but intended, out of scope for this PR, a known risk, or too minor.
🤖 Bits Code Review · Open Bits AI session
Motivation
In the extension the end current session button only wrote
_dd_s, so it didn't end sessions stored in_dd_s_v2, and it droppedaid, andc.Changes
The button wrote
_dd_s=isExpired=1. Now the button callsDD_RUM.stopSession(), so the normal expired stated is written by the SDK.Test instructions
developer-extensiondirectory, build the extension and start the dev serverChecklist