We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sentry_sdk.spotlight
1 parent 0e73049 commit 24790ebCopy full SHA for 24790eb
sentry_sdk/client.py
@@ -47,7 +47,6 @@
47
)
48
from sentry_sdk.scrubber import EventScrubber
49
from sentry_sdk.monitor import Monitor
50
-from sentry_sdk.spotlight import setup_spotlight
51
52
if TYPE_CHECKING:
53
from typing import Any
@@ -429,6 +428,10 @@ def _capture_envelope(envelope):
429
428
430
431
if self.options.get("spotlight"):
+ # This is intentionally here to prevent setting up spotlight
432
+ # stuff we don't need unless spotlight is explicitly enabled
433
+ from sentry_sdk.spotlight import setup_spotlight
434
+
435
self.spotlight = setup_spotlight(self.options)
436
if not self.options["dsn"]:
437
sample_all = lambda *_args, **_kwargs: 1.0
0 commit comments