question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to disable or unload sentry?

See original GitHub issue

Versions + Platform

  • SKD version - `@sentry/electron@v1.1.0
  • Electron version - `electron@v7.1.7
  • Platform - Linux

Description

How to disable sentry which was enabled on app start (reference implementation: https://github.com/getsentry/sentry-electron/tree/master/example )

Background: i wan’t my users to be able to disable error-reporting if they want to (DSGVO). This user preference will be stored in a json file and loaded on start or when the user changes the setting.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
HazATcommented, Jan 8, 2020

Thanks for highlighting, we might consider adding a better API for this.

1reaction
yafpcommented, Dec 28, 2019

Sentry.getCurrentHub().getClient().getOptions().enabled = false;

seems to work for sentry-electron as well. Might be worth adding it to the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Option to disable sentry - SDKs
Hi, is there a way to uninitialize Sentry after a previous initialization? I need to allow the user to decide if they consent...
Read more >
Managing the Sentry Service | 6.3.x - Cloudera Documentation
Important: When Sentry is enabled, you must use Beeline to execute Hive queries. Hive CLI is not supported with Sentry and must be...
Read more >
Install the Component – Hardware Sentry KM for PATROL ...
There is no true removal procedure for a Component Type. However, you can unload all UI elements of Hardware Sentry by deleting the...
Read more >
iobroker.openweathermap - npm
This adapter uses Sentry libraries to automatically report exceptions and code errors to the ... (Apollon77) updated unload/stop handling ...
Read more >
Sentry - Citizens Wiki
Add KillDrops option to remove the item and exp drops from Sentry kills. ... Compatibility fixes for Chunk Unload settings in citizens2.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found