Skip to content

ref(boto3): Split integration into internal modules - #7537

Open
pabloDeputter wants to merge 3 commits into
masterfrom
pablo/refactor-boto3-integration
Open

pabloDeputter wants to merge 3 commits into
masterfrom
pablo/refactor-boto3-integration

Conversation

@pabloDeputter

Copy link
Copy Markdown
Member

Description

Move Boto3Integration from single module into package with smaller internal modules.

  • botocore client patching is moved into _client.py.
  • request instrumentation and event handlers into _instrumentation.py.
  • existing public import is kept unchanged: from sentry_sdk.integrations.boto3 import Boto3Integration.

@pabloDeputter
pabloDeputter added this pull request to stack #7539 September 18, 2026 14:23
@github-actions

github-actions Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

126963 passed | ❌ 59 failed | ⏭️ 7165 skipped | Total: 134187 | Pass Rate: 94.62% | Execution Time: 436m 2s

❌ Failed Tests

test_input_attributes_nonstreaming_chat[False-True-False-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:519: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat[False-True-False-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:519: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat[False-True-False-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:519: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat[False-False-True-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:549: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat[False-False-True-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:549: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat[False-False-True-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:549: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat[False-False-True-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:549: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat[False-False-False-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:549: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat[False-False-False-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:549: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat[False-False-False-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:549: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat[False-False-False-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:549: in test_input_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-True-True-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-True-True-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-True-True-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-True-True-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-True-False-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-True-False-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-True-False-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-True-False-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-False-True-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-False-True-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-False-True-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-False-True-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-False-False-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-False-False-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-False-False-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[True-False-False-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-True-True-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-True-True-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-True-True-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-True-True-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-True-False-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-True-False-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-True-False-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-True-False-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:807: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-False-True-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:837: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-False-True-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:837: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-False-True-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:837: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-False-True-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:837: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-False-False-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:837: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-False-False-messages1-expected_system_instructions1-expected_input_messages1]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:837: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-False-False-messages2-expected_system_instructions2-expected_input_messages2]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:837: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_input_attributes_nonstreaming_chat_async[False-False-False-messages3-expected_system_instructions3-expected_input_messages3]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:837: in test_input_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat[True-True-True]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:900: in test_output_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat[True-True-False]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:900: in test_output_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat[True-False-True]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:900: in test_output_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat[True-False-False]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:900: in test_output_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat[False-True-True]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:900: in test_output_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat[False-True-False]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:900: in test_output_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat[False-False-True]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:939: in test_output_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat[False-False-False]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:939: in test_output_attributes_nonstreaming_chat
    client.chat.complete(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:297: in complete
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat_async[True-True-True]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:1010: in test_output_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat_async[True-True-False]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:1010: in test_output_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat_async[True-False-True]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:1010: in test_output_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat_async[True-False-False]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:1010: in test_output_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat_async[False-True-True]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:1010: in test_output_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat_async[False-True-False]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:1010: in test_output_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat_async[False-False-True]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:1049: in test_output_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

test_output_attributes_nonstreaming_chat_async[False-False-False]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.10.1
Error: mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

Stack Trace
tests/integrations/mistral/test_mistral.py:1049: in test_output_attributes_nonstreaming_chat_async
    await client.chat.complete_async(
.tox/py3.10-mistral-v2.10.1/lib/python3.10/site-packages/mistralai/client/chat.py:500: in complete_async
    raise errors.SDKError("API error occurred", http_res, http_res_text)
E   mistralai.client.errors.sdkerror.SDKError: API error occurred: Status 401. Body: {"detail":"Invalid API Key"}

✅ Patch coverage is 91.30%. Project has 2554 uncovered lines.
❌ Project coverage is 90.19%. Comparing base (d99edef) to head (5bbe368).

Files with missing lines (2)
File Patch % Lines
sentry_sdk/integrations/boto3/init.py 87.50% ⚠️ 2 Missing
sentry_sdk/integrations/boto3/_client.py 91.67% ⚠️ 2 Missing
Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.22%    90.19%    -0.03%
==========================================
  Files          194       197        +3
  Lines        25997     26022       +25
  Branches      9662      9662         —
==========================================
+ Hits         23454     23468       +14
- Misses        2543      2554       +11
- Partials      1451      1451         —

Generated by Codecov Action

@pabloDeputter
pabloDeputter removed this pull request from stack #7539 September 18, 2026 15:08
@pabloDeputter
pabloDeputter added this pull request to stack #7541 September 18, 2026 15:08
@pabloDeputter
pabloDeputter marked this pull request as ready for review September 18, 2026 15:12
@pabloDeputter
pabloDeputter requested a review from a team as a code owner September 18, 2026 15:12
Comment thread sentry_sdk/integrations/boto3/__init__.py Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bf4bb5d. Configure here.

Comment thread sentry_sdk/integrations/boto3/__init__.py

@ericapisani ericapisani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the earlier changes. There's one more change that we can try and make to avoid the need for dynamic imports altogether, have left a comment within one of the methods explaining.

Otherwise, this LGTM, approving in order to not block once that's been addressed

def _sentry_before_sign(
request: "AWSRequest", signature_version: "Any", **kwargs: "Any"
) -> None:
from sentry_sdk.integrations.boto3 import Boto3Integration

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A fun thing that you can do to try and get around the need for this dynamic import - you can provide the string rather than the class to client.get_integration.

So I think lines 117 and 118 below would look like this:

if client.get_integration("Boto3Integration") is None:
        return

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay good to know, I didn't knew this was possible. Then we'll probably use client.get_integration("boto3") instead, right? Since we use boto3 as identifier for the integration.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do this probably in a later PR, cause I don't want to do merge hell once again 😭

@pabloDeputter
pabloDeputter force-pushed the pablo/refactor-boto3-integration branch 3 times, most recently from 4c7d088 to 5bbe368 Compare September 22, 2026 09:18
@pabloDeputter
pabloDeputter force-pushed the pablo/refactor-boto3-integration branch from 5bbe368 to 591151d Compare September 22, 2026 14:53
@pabloDeputter
pabloDeputter removed this pull request from stack #7541 September 22, 2026 14:57
@pabloDeputter
pabloDeputter added this pull request to stack #7618 September 22, 2026 14:57

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants