Repository navigation
feat: Gleap.stopNetworkLogger, and network logs off in the dashboard means off - #251
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…means off Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stored wrappers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… restore wrappers on stop Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cached off and destroy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TobiasDuelli
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The JS SDK had no way to turn network logging off from code, and with Network logs off in the dashboard it still attached the browser's Resource Timing entries (fetch/XHR URLs with query strings) to tickets. A running logger could not be stopped either.
What changes
Gleap.stopNetworkLogger(), also beforeinitialize(): the dashboard can no longer start the logger, captured and attached logs are deleted, and no network data is sent, Resource Timing included.attachNetworkLogsstill go out.startNetworkLogger()wins over the dashboard and ends a stop. Resource Timing entries from before that moment do not come back after a stop or an off from the server.fetchandXMLHttpRequestare restored on stop where our wrapper is still the installed one. A wrapper we removed never records again.Gleap.destroy()stops the logger.Please review
latestwithout an opt-in, as a minor version. It is listed under Breaking changes. The missing-setting case is an exception to "a missing setting keeps today's behaviour" inAGENTS.md, approved by the owner.fetchagain.build/,published/latestandpublished/19.10.0. Not tagged: the tag after the merge publishes to npm.Checks
npx vitest related <changed files> --run: 760 passednpm run typecheck,npm run build: cleannpm run test:smoke: 9 passednode tools/quality/check.mjs --base origin/master: 0 problems, 4 file-size warningsNot checked: a real browser beyond the smoke tests, and
CompressionStreambodies of capture logs.🤖 Generated with Claude Code