From 40ab71687c7efded16103544c4beecb2afc9a3b0 Mon Sep 17 00:00:00 2001 From: Kian Meng Ang Date: Tue, 16 Nov 2021 21:41:03 +0800 Subject: [PATCH] chore: fix typos (#1253) --- CHANGELOG.md | 2 +- sentry_sdk/integrations/aiohttp.py | 2 +- sentry_sdk/tracing.py | 2 +- sentry_sdk/tracing_utils.py | 2 +- tests/test_transport.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f60058d05..4c9502dc04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,7 +54,7 @@ A major release `N` implies the previous release `N-1` will no longer receive up ## 1.2.0 - Fix for `AWSLambda` Integration to handle other path formats for function initial handler #1139 -- Fix for worker to set deamon attribute instead of deprecated setDaemon method #1093 +- Fix for worker to set daemon attribute instead of deprecated setDaemon method #1093 - Fix for `bottle` Integration that discards `-dev` for version extraction #1085 - Fix for transport that adds a unified hook for capturing metrics about dropped events #1100 - Add `Httpx` Integration #1119 diff --git a/sentry_sdk/integrations/aiohttp.py b/sentry_sdk/integrations/aiohttp.py index f74e6f4bf2..1781ddc5e0 100644 --- a/sentry_sdk/integrations/aiohttp.py +++ b/sentry_sdk/integrations/aiohttp.py @@ -66,7 +66,7 @@ def setup_once(): version = tuple(map(int, AIOHTTP_VERSION.split(".")[:2])) except (TypeError, ValueError): raise DidNotEnable( - "AIOHTTP version unparseable: {}".format(AIOHTTP_VERSION) + "AIOHTTP version unparsable: {}".format(AIOHTTP_VERSION) ) if version < (3, 4): diff --git a/sentry_sdk/tracing.py b/sentry_sdk/tracing.py index bfca30c6d4..aff6a90659 100644 --- a/sentry_sdk/tracing.py +++ b/sentry_sdk/tracing.py @@ -617,7 +617,7 @@ def _set_initial_sampling_decision(self, sampling_context): 1. If a sampling decision is passed to `start_transaction` (`start_transaction(name: "my transaction", sampled: True)`), that - decision will be used, regardlesss of anything else + decision will be used, regardless of anything else 2. If `traces_sampler` is defined, its decision will be used. It can choose to keep or ignore any parent sampling decision, or use the diff --git a/sentry_sdk/tracing_utils.py b/sentry_sdk/tracing_utils.py index 5ad8520cab..ff00b2e444 100644 --- a/sentry_sdk/tracing_utils.py +++ b/sentry_sdk/tracing_utils.py @@ -65,7 +65,7 @@ # of the form `sentry=xxxx` SENTRY_TRACESTATE_ENTRY_REGEX = re.compile( # either sentry is the first entry or there's stuff immediately before it, - # ending in a commma (this prevents matching something like `coolsentry=xxx`) + # ending in a comma (this prevents matching something like `coolsentry=xxx`) "(?:^|.+,)" # sentry's part, not including the potential comma "(sentry=[^,]*)" diff --git a/tests/test_transport.py b/tests/test_transport.py index 0ce155e6e6..a837182f6d 100644 --- a/tests/test_transport.py +++ b/tests/test_transport.py @@ -279,7 +279,7 @@ def intercepting_fetch(*args, **kwargs): client.flush() # this goes out with an extra envelope because it's flushed after the last item - # that is normally in the queue. This is quite funny in a way beacuse it means + # that is normally in the queue. This is quite funny in a way because it means # that the envelope that caused its own over quota report (an error with an # attachment) will include its outcome since it's pending. assert len(capturing_server.captured) == 1