You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.10-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
/usr/lib/python3.10/unittest/mock.py:1447: in __enter__
original, local = self.get_original()
/usr/lib/python3.10/unittest/mock.py:1420: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.11-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1446: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1419: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.11-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1446: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1419: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.11-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1446: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1419: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.11-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1446: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1419: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.11-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1446: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1419: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.11-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1446: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/unittest/mock.py:1419: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.12-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1467: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.14-linux-x86_64-gnu/lib/python3.12/unittest/mock.py:1437: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.13-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1503: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.13.15-linux-x86_64-gnu/lib/python3.13/unittest/mock.py:1473: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7-linux-x86_64-gnu/lib/python3.14/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v2.54.0 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.14t-openai-base-v3.16.2 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1510: in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.14.7+freethreaded-linux-x86_64-gnu/lib/python3.14t/unittest/mock.py:1480: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.0.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3260: in test_completions_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_with_detailed_fields
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3298: in test_completions_token_usage_with_detailed_fields
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3337: in test_completions_token_usage_manual_input_counting
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3376: in test_completions_token_usage_manual_output_counting_streaming
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3428: in test_completions_token_usage_manual_output_counting_choices
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_completions_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3460: in test_completions_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_from_response
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3500: in test_responses_token_usage_from_response
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
test_responses_token_usage_no_usage_data
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3527: in test_responses_token_usage_no_usage_data
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
File:tests.integrations.openai.test_openai Suite:py3.8-openai-base-v1.109.1 Error: AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
Stack Trace
tests/integrations/openai/test_openai.py:3591: in test_responses_token_usage_manual_output_counting_response_output
with mock.patch(
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__
original, local = self.get_original()
../../_temp/uv-python-dir/cpython-3.8-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: in get_original
raise AttributeError(
E AttributeError: <module 'sentry_sdk.integrations.openai' from '/home/runner/work/sentry-python/sentry-python/sentry_sdk/integrations/openai.py'> does not have the attribute 'record_token_usage'
✅ Patch coverage is 86.67%. Project has 2096 uncovered lines.
❌ Project coverage is 90.01%. Comparing base (deadc7a) to head (88455f2).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Issues
Reminders
uv run ruff.feat:,fix:,ref:,meta:)