File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,27 @@ def _parse_time_stamp(time_stamp):
7171TRUE_VALUES = {"on" , "true" , "1" }
7272FALSE_VALUES = {"off" , "false" , "0" }
7373
74+ DEPRECATED_ENVIRON_SETTINGS = (
75+ "newrelic.set_background_task" ,
76+ "newrelic.suppress_apdex_metric" ,
77+ "newrelic.suppress_transaction_trace" ,
78+ "newrelic.capture_request_params" ,
79+ "newrelic.disable_browser_autorum" ,
80+ )
81+
7482
7583def _lookup_environ_setting (environ , name , default = False ):
7684 if name not in environ :
7785 return default
7886
87+ # Check for deprecated WSGI environ dictionary setting
88+ if name in DEPRECATED_ENVIRON_SETTINGS :
89+ warnings .warn (
90+ f"Environ setting '{ name } ' is deprecated and will be removed in a future release." ,
91+ DeprecationWarning ,
92+ stacklevel = 2 ,
93+ )
94+
7995 flag = environ [name ]
8096
8197 if isinstance (flag , str ):
You can’t perform that action at this time.
0 commit comments