@@ -371,7 +371,7 @@ def env(
371371# so that responses aren't modified after Content-Length is set, or have the
372372# response modifying middleware reset the Content-Length header.
373373# This is because CommonMiddleware Sets the Content-Length header for non-streaming responses.
374- APIGW_ASYNC = os .environ .get ("SENTRY_ASYNC_APIGW " , "" ).lower () in ("1" , "true" , "y" , "yes" )
374+ APIGW_ASYNC = os .environ .get ("SENTRY_APIGW_ASYNC " , "" ).lower () in ("1" , "true" , "y" , "yes" )
375375APIGW_MIDDLEWARE = (
376376 "sentry.hybridcloud.apigateway_async.middleware.ApiGatewayMiddleware"
377377 if APIGW_ASYNC
@@ -3187,9 +3187,9 @@ def custom_parameter_sort(parameter: dict) -> tuple[str, int]:
31873187}
31883188# Used in tests to skip forwarding relay paths to a region silo that does not exist.
31893189APIGATEWAY_PROXY_SKIP_RELAY = False
3190- APIGATEWAY_PROXY_MAX_CONCURRENCY = 100
3191- APIGATEWAY_PROXY_MAX_FAILURES = 100
3192- APIGATEWAY_PROXY_FAILURE_WINDOW = 60
3190+ APIGATEWAY_PROXY_MAX_CONCURRENCY = int ( os . environ . get ( "SENTRY_APIGW_PROXY_MAX_CONCURRENCY" , 100 ))
3191+ APIGATEWAY_PROXY_MAX_FAILURES = int ( os . environ . get ( "SENTRY_APIGW_PROXY_MAX_FAILURES" , 100 ))
3192+ APIGATEWAY_PROXY_FAILURE_WINDOW = int ( os . environ . get ( "SENTRY_APIGW_PROXY_FAILURE_WINDOW" , 60 ))
31933193
31943194# Shared resource ids for accounting
31953195EVENT_PROCESSING_STORE = "rc_processing_redis"
0 commit comments