File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -212,8 +212,11 @@ def _capture_envelope(envelope):
212
212
self .transport = make_transport (self .options )
213
213
214
214
self .monitor = None
215
- if self .transport and self .options ["enable_backpressure_handling" ]:
216
- self .monitor = Monitor (self .transport )
215
+ if self .transport :
216
+ if self .options ["_experiments" ].get (
217
+ "enable_backpressure_handling" , False
218
+ ):
219
+ self .monitor = Monitor (self .transport )
217
220
218
221
self .session_flusher = SessionFlusher (capture_func = _capture_envelope )
219
222
Original file line number Diff line number Diff line change 36
36
# TODO: Remove these 2 profiling related experiments
37
37
"profiles_sample_rate" : Optional [float ],
38
38
"profiler_mode" : Optional [ProfilerMode ],
39
+ "enable_backpressure_handling" : Optional [bool ],
39
40
},
40
41
total = False ,
41
42
)
@@ -205,7 +206,6 @@ def __init__(
205
206
], # type: Optional[Sequence[str]]
206
207
functions_to_trace = [], # type: Sequence[Dict[str, str]] # noqa: B006
207
208
event_scrubber = None , # type: Optional[sentry_sdk.scrubber.EventScrubber]
208
- enable_backpressure_handling = True , # type: bool
209
209
):
210
210
# type: (...) -> None
211
211
pass
You can’t perform that action at this time.
0 commit comments