Skip to content

Commit 3995132

Browse files
ref(aiohttp): Make DEFUALT_FAILED_REQUEST_STATUS_CODES private (getsentry#3558)
There is no reason this constant should be part of the public API. Since no release has included this constant yet, making this constant private does not require a major version bump.
1 parent 09c6f2a commit 3995132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/aiohttp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262

6363
TRANSACTION_STYLE_VALUES = ("handler_name", "method_and_path_pattern")
64-
DEFAULT_FAILED_REQUEST_STATUS_CODES = frozenset(range(500, 600))
64+
_DEFAULT_FAILED_REQUEST_STATUS_CODES = frozenset(range(500, 600))
6565

6666

6767
class AioHttpIntegration(Integration):
@@ -72,7 +72,7 @@ def __init__(
7272
self,
7373
transaction_style="handler_name", # type: str
7474
*,
75-
failed_request_status_codes=DEFAULT_FAILED_REQUEST_STATUS_CODES, # type: Set[int]
75+
failed_request_status_codes=_DEFAULT_FAILED_REQUEST_STATUS_CODES, # type: Set[int]
7676
):
7777
# type: (...) -> None
7878
if transaction_style not in TRANSACTION_STYLE_VALUES:

0 commit comments

Comments
 (0)