8000 feat: Auto enable integrations=true (#845) · GetResQ/sentry-python@356ad6c · GitHub
[go: up one dir, main page]

Skip to content

Commit 356ad6c

Browse files
HazATsentry-bot
andauthored
feat: Auto enable integrations=true (getsentry#845)
* feat: Auto enable integrations=true * fix: Formatting * ref: Remove experiments flag * fix: Formatting Co-authored-by: sentry-bot <markus+ghbot@sentry.io>
1 parent a7f7e2a commit 356ad6c

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

sentry_sdk/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ def _send_sessions(sessions):
128128
self.integrations = setup_integrations(
129129
self.options["integrations"],
130130
with_defaults=self.options["default_integrations"],
131-
with_auto_enabling_integrations=self.options["_experiments"].get(
132-
"auto_enabling_integrations", False
133-
),
131+
with_auto_enabling_integrations=self.options[
132+
"auto_enabling_integrations"
133+
],
134134
)
135135
finally:
136136
_client_init_debug.set(old_debug)

sentry_sdk/consts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def __init__(
6464
ca_certs=None, # type: Optional[str]
6565
propagate_traces=True, # type: bool
6666
traces_sample_rate=0.0, # type: float
67+
auto_enabling_integrations=True, # type: bool
6768
_experiments={}, # type: Experiments # noqa: B006
6869
):
6970
# type: (...) -> None

tests/integrations/flask/test_flask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def hi():
4545
@pytest.fixture(params=("auto", "manual"))
4646
def integration_enabled_params(request):
4747
if request.param == "auto":
48-
return {"_experiments": {"auto_enabling_integrations": True}}
48+
return {"auto_enabling_integrations": True}
4949
elif request.param == "manual":
5050
return {"integrations": [flask_sentry.FlaskIntegration()]}
5151
else:

tests/test_basics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def error_processor(event, exc_info):
4343
def test_auto_enabling_integrations_catches_import_error(sentry_init, caplog):
4444
caplog.set_level(logging.DEBUG)
4545

46-
sentry_init(_experiments={"auto_enabling_integrations": True}, debug=True)
46+
sentry_init(auto_enabling_integrations=True, debug=True)
4747

4848
for import_string in _AUTO_ENABLING_INTEGRATIONS:
4949
assert any(

0 commit comments

Comments
 (0)
0