@@ -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
@@ -3183,9 +3183,9 @@ def custom_parameter_sort(parameter: dict) -> tuple[str, int]:
31833183}
31843184# Used in tests to skip forwarding relay paths to a region silo that does not exist.
31853185APIGATEWAY_PROXY_SKIP_RELAY = False
3186- APIGATEWAY_PROXY_MAX_CONCURRENCY = 100
3187- APIGATEWAY_PROXY_MAX_FAILURES = 100
3188- APIGATEWAY_PROXY_FAILURE_WINDOW = 60
3186+ APIGATEWAY_PROXY_MAX_CONCURRENCY = int ( os . environ . get ( "SENTRY_APIGW_PROXY_MAX_CONCURRENCY" , 100 ))
3187+ APIGATEWAY_PROXY_MAX_FAILURES = int ( os . environ . get ( "SENTRY_APIGW_PROXY_MAX_FAILURES" , 100 ))
3188+ APIGATEWAY_PROXY_FAILURE_WINDOW = int ( os . environ . get ( "SENTRY_APIGW_PROXY_FAILURE_WINDOW" , 60 ))
31893189
31903190# Shared resource ids for accounting
31913191EVENT_PROCESSING_STORE = "rc_processing_redis"
0 commit comments