|
3 | 3 | import sentry_sdk |
4 | 4 | from sentry_sdk.consts import OP, SPANDATA |
5 | 5 | from sentry_sdk.integrations import DidNotEnable |
6 | | -from sentry_sdk.integrations.boto3.consts import ORIGIN |
| 6 | +from sentry_sdk.integrations.boto3.consts import IDENTIFIER, ORIGIN |
7 | 7 | from sentry_sdk.traces import StreamedSpan |
8 | 8 | from sentry_sdk.tracing import BAGGAGE_HEADER_NAME, Span |
9 | 9 | from sentry_sdk.tracing_utils import ( |
|
34 | 34 | def _sentry_request_created( |
35 | 35 | service_id: "ServiceId", request: "AWSRequest", operation_name: str, **kwargs: "Any" |
36 | 36 | ) -> None: |
37 | | - from sentry_sdk.integrations.boto3 import Boto3Integration |
38 | 37 |
|
39 | 38 | description = "aws.%s.%s" % (service_id.hyphenize(), operation_name) |
40 | 39 |
|
41 | 40 | client = sentry_sdk.get_client() |
42 | | - if client.get_integration(Boto3Integration) is None: |
| 41 | + if client.get_integration(IDENTIFIER) is None: |
43 | 42 | return |
44 | 43 |
|
45 | 44 | parsed_url = None |
@@ -111,10 +110,9 @@ def _sentry_request_created( |
111 | 110 | def _sentry_before_sign( |
112 | 111 | request: "AWSRequest", signature_version: "Any", **kwargs: "Any" |
113 | 112 | ) -> None: |
114 | | - from sentry_sdk.integrations.boto3 import Boto3Integration |
115 | 113 |
|
116 | 114 | client = sentry_sdk.get_client() |
117 | | - if client.get_integration(Boto3Integration) is None: |
| 115 | + if client.get_integration(IDENTIFIER) is None: |
118 | 116 | return |
119 | 117 |
|
120 | 118 | with capture_internal_exceptions(): |
|
0 commit comments