Skip to content

Commit

Permalink
ref(aiohttp): Make DEFUALT_FAILED_REQUEST_STATUS_CODES private
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
szokeasaurusrex committed Sep 23, 2024
1 parent 7e4992a commit 64f31c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry_sdk/integrations/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@


TRANSACTION_STYLE_VALUES = ("handler_name", "method_and_path_pattern")
DEFAULT_FAILED_REQUEST_STATUS_CODES = frozenset(range(500, 600))
_DEFAULT_FAILED_REQUEST_STATUS_CODES = frozenset(range(500, 600))


class AioHttpIntegration(Integration):
Expand All @@ -72,7 +72,7 @@ def __init__(
self,
transaction_style="handler_name", # type: str
*,
failed_request_status_codes=DEFAULT_FAILED_REQUEST_STATUS_CODES, # type: Set[int]
failed_request_status_codes=_DEFAULT_FAILED_REQUEST_STATUS_CODES, # type: Set[int]
):
# type: (...) -> None
if transaction_style not in TRANSACTION_STYLE_VALUES:
Expand Down

0 comments on commit 64f31c9

Please sign in to comment.