Skip to content

feat(litellm): Support span streaming#6317

Draft
alexander-alderman-webb wants to merge 1 commit into
masterfrom
webb/litellm/span-first
Draft

feat(litellm): Support span streaming#6317
alexander-alderman-webb wants to merge 1 commit into
masterfrom
webb/litellm/span-first

Conversation

@alexander-alderman-webb
Copy link
Copy Markdown
Contributor

@alexander-alderman-webb alexander-alderman-webb commented May 21, 2026

Description

Use sentry_sdk.traces.start_span and replace Span.set_data() with StreamedSpan.set_attribute() when in span streaming mode.

Parametrize tests on the trace lifecycle option.

Issues

Reminders

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

Codecov Results 📊

85 passed | ❌ 74 failed | Total: 159 | Pass Rate: 53.46% | Execution Time: 2m 11s

❌ Failed Tests

test_nonstreaming_chat_completion[True-True-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:199: in test_nonstreaming_chat_completion
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_nonstreaming_chat_completion[True-True-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:199: in test_nonstreaming_chat_completion
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_nonstreaming_chat_completion[True-False-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:199: in test_nonstreaming_chat_completion
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_nonstreaming_chat_completion[True-False-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:199: in test_nonstreaming_chat_completion
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_nonstreaming_chat_completion[False-True-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:199: in test_nonstreaming_chat_completion
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_nonstreaming_chat_completion[False-True-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:199: in test_nonstreaming_chat_completion
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_nonstreaming_chat_completion[False-False-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:199: in test_nonstreaming_chat_completion
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_nonstreaming_chat_completion[False-False-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:199: in test_nonstreaming_chat_completion
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_nonstreaming_chat_completion[True-True-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:355: in test_async_nonstreaming_chat_completion
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_nonstreaming_chat_completion[True-True-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:355: in test_async_nonstreaming_chat_completion
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_nonstreaming_chat_completion[True-False-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:355: in test_async_nonstreaming_chat_completion
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_nonstreaming_chat_completion[True-False-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:355: in test_async_nonstreaming_chat_completion
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_nonstreaming_chat_completion[False-True-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:355: in test_async_nonstreaming_chat_completion
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_nonstreaming_chat_completion[False-True-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:355: in test_async_nonstreaming_chat_completion
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_nonstreaming_chat_completion[False-False-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:355: in test_async_nonstreaming_chat_completion
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_nonstreaming_chat_completion[False-False-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:355: in test_async_nonstreaming_chat_completion
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_streaming_chat_completion[True-True-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:735: in completion
    return self.streaming(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1038: in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:506: in test_streaming_chat_completion
    response = litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_streaming_chat_completion[True-True-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:735: in completion
    return self.streaming(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1038: in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:506: in test_streaming_chat_completion
    response = litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_streaming_chat_completion[True-False-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:735: in completion
    return self.streaming(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1038: in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:506: in test_streaming_chat_completion
    response = litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_streaming_chat_completion[True-False-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:735: in completion
    return self.streaming(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1038: in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:506: in test_streaming_chat_completion
    response = litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_streaming_chat_completion[False-True-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:735: in completion
    return self.streaming(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1038: in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:506: in test_streaming_chat_completion
    response = litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_streaming_chat_completion[False-True-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:735: in completion
    return self.streaming(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1038: in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:506: in test_streaming_chat_completion
    response = litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_streaming_chat_completion[False-False-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:735: in completion
    return self.streaming(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1038: in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:506: in test_streaming_chat_completion
    response = litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_streaming_chat_completion[False-False-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:735: in completion
    return self.streaming(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1038: in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:506: in test_streaming_chat_completion
    response = litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_streaming_chat_completion[True-True-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1113: in async_streaming
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1170: in async_streaming
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:623: in test_async_streaming_chat_completion
    response = await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_streaming_chat_completion[True-True-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1113: in async_streaming
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1170: in async_streaming
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:623: in test_async_streaming_chat_completion
    response = await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_streaming_chat_completion[True-False-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1113: in async_streaming
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1170: in async_streaming
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:623: in test_async_streaming_chat_completion
    response = await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_streaming_chat_completion[True-False-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1113: in async_streaming
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1170: in async_streaming
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:623: in test_async_streaming_chat_completion
    response = await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_streaming_chat_completion[False-True-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1113: in async_streaming
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1170: in async_streaming
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:623: in test_async_streaming_chat_completion
    response = await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_streaming_chat_completion[False-True-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1113: in async_streaming
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1170: in async_streaming
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:623: in test_async_streaming_chat_completion
    response = await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_streaming_chat_completion[False-False-True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1113: in async_streaming
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1170: in async_streaming
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:623: in test_async_streaming_chat_completion
    response = await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_streaming_chat_completion[False-False-False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1113: in async_streaming
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1170: in async_streaming
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:623: in test_async_streaming_chat_completion
    response = await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_embeddings_create[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1364: in embedding
    headers, sync_embedding_response = self.make_sync_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1237: in make_sync_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1229: in make_sync_openai_embedding_request
    raw_response = openai_client.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1243: in _sentry_patched_create_sync
    return _new_sync_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1181: in _new_sync_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5023: in embedding
    response = openai_chat_completions.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1395: in embedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:727: in test_embeddings_create
    response = litellm.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5894: in embedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_embeddings_create[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1364: in embedding
    headers, sync_embedding_response = self.make_sync_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1237: in make_sync_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1229: in make_sync_openai_embedding_request
    raw_response = openai_client.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1243: in _sentry_patched_create_sync
    return _new_sync_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1181: in _new_sync_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5023: in embedding
    response = openai_chat_completions.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1395: in embedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:727: in test_embeddings_create
    response = litellm.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5894: in embedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_embeddings_create[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1262: in aembedding
    headers, response = await self.make_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1213: in make_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1206: in make_openai_embedding_request
    raw_response = await openai_aclient.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1255: in _sentry_patched_create_async
    return await _new_async_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1213: in _new_async_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4679: in aembedding
    response = await init_response  # type: ignore
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1307: in aembedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:847: in test_async_embeddings_create
    response = await litellm.aembedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4694: in aembedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_embeddings_create[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1262: in aembedding
    headers, response = await self.make_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1213: in make_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1206: in make_openai_embedding_request
    raw_response = await openai_aclient.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1255: in _sentry_patched_create_async
    return await _new_async_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1213: in _new_async_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4679: in aembedding
    response = await init_response  # type: ignore
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1307: in aembedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:847: in test_async_embeddings_create
    response = await litellm.aembedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4694: in aembedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_embeddings_create_with_list_input[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1364: in embedding
    headers, sync_embedding_response = self.make_sync_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1237: in make_sync_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1229: in make_sync_openai_embedding_request
    raw_response = openai_client.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1243: in _sentry_patched_create_sync
    return _new_sync_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1181: in _new_sync_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5023: in embedding
    response = openai_chat_completions.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1395: in embedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:963: in test_embeddings_create_with_list_input
    response = litellm.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5894: in embedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_embeddings_create_with_list_input[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1364: in embedding
    headers, sync_embedding_response = self.make_sync_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1237: in make_sync_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1229: in make_sync_openai_embedding_request
    raw_response = openai_client.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1243: in _sentry_patched_create_sync
    return _new_sync_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1181: in _new_sync_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5023: in embedding
    response = openai_chat_completions.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1395: in embedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:963: in test_embeddings_create_with_list_input
    response = litellm.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5894: in embedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_embeddings_create_with_list_input[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1262: in aembedding
    headers, response = await self.make_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1213: in make_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1206: in make_openai_embedding_request
    raw_response = await openai_aclient.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1255: in _sentry_patched_create_async
    return await _new_async_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1213: in _new_async_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4679: in aembedding
    response = await init_response  # type: ignore
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1307: in aembedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1076: in test_async_embeddings_create_with_list_input
    response = await litellm.aembedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4694: in aembedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_embeddings_create_with_list_input[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1262: in aembedding
    headers, response = await self.make_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1213: in make_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1206: in make_openai_embedding_request
    raw_response = await openai_aclient.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1255: in _sentry_patched_create_async
    return await _new_async_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1213: in _new_async_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4679: in aembedding
    response = await init_response  # type: ignore
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1307: in aembedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1076: in test_async_embeddings_create_with_list_input
    response = await litellm.aembedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4694: in aembedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_embeddings_no_pii[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1364: in embedding
    headers, sync_embedding_response = self.make_sync_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1237: in make_sync_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1229: in make_sync_openai_embedding_request
    raw_response = openai_client.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1243: in _sentry_patched_create_sync
    return _new_sync_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1181: in _new_sync_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5023: in embedding
    response = openai_chat_completions.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1395: in embedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1189: in test_embeddings_no_pii
    response = litellm.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5894: in embedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_embeddings_no_pii[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1364: in embedding
    headers, sync_embedding_response = self.make_sync_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1237: in make_sync_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1229: in make_sync_openai_embedding_request
    raw_response = openai_client.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1243: in _sentry_patched_create_sync
    return _new_sync_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1181: in _new_sync_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5023: in embedding
    response = openai_chat_completions.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1395: in embedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1189: in test_embeddings_no_pii
    response = litellm.embedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:5894: in embedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_embeddings_no_pii[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1262: in aembedding
    headers, response = await self.make_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1213: in make_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1206: in make_openai_embedding_request
    raw_response = await openai_aclient.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1255: in _sentry_patched_create_async
    return await _new_async_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1213: in _new_async_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4679: in aembedding
    response = await init_response  # type: ignore
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1307: in aembedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1288: in test_async_embeddings_no_pii
    response = await litellm.aembedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4694: in aembedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_embeddings_no_pii[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1262: in aembedding
    headers, response = await self.make_openai_embedding_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1213: in make_openai_embedding_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1206: in make_openai_embedding_request
    raw_response = await openai_aclient.embeddings.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1255: in _sentry_patched_create_async
    return await _new_async_embeddings_create(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1213: in _new_async_embeddings_create
    with get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4679: in aembedding
    response = await init_response  # type: ignore
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:1307: in aembedding
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1288: in test_async_embeddings_no_pii
    response = await litellm.aembedding(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4694: in aembedding
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_exception_handling[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1384: in test_exception_handling
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_exception_handling[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1384: in test_exception_handling
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_exception_handling[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1453: in test_async_exception_handling
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_exception_handling[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1453: in test_async_exception_handling
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_span_origin[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1534: in test_span_origin
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_span_origin[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1534: in test_span_origin
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_multiple_providers[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1642: in test_multiple_providers
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_multiple_providers[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1642: in test_multiple_providers
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_multiple_providers[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1821: in test_async_multiple_providers
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_multiple_providers[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:1821: in test_async_multiple_providers
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_additional_parameters[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2004: in test_additional_parameters
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_additional_parameters[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2004: in test_additional_parameters
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_additional_parameters[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2117: in test_async_additional_parameters
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_additional_parameters[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2117: in test_async_additional_parameters
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_no_integration[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2231: in test_no_integration
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_no_integration[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2231: in test_no_integration
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_no_integration[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2320: in test_async_no_integration
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_no_integration[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2320: in test_async_no_integration
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_binary_content_encoding_image_url[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2575: in test_binary_content_encoding_image_url
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_binary_content_encoding_image_url[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2575: in test_binary_content_encoding_image_url
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_binary_content_encoding_image_url[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2699: in test_async_binary_content_encoding_image_url
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_binary_content_encoding_image_url[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2699: in test_async_binary_content_encoding_image_url
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_binary_content_encoding_mixed_content[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2826: in test_binary_content_encoding_mixed_content
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_binary_content_encoding_mixed_content[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2826: in test_binary_content_encoding_mixed_content
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_binary_content_encoding_mixed_content[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2939: in test_async_binary_content_encoding_mixed_content
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_binary_content_encoding_mixed_content[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:2939: in test_async_binary_content_encoding_mixed_content
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_binary_content_encoding_uri_type[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:3051: in test_binary_content_encoding_uri_type
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_binary_content_encoding_uri_type[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:852: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:780: in completion
    ) = self.make_sync_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:344: in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:503: in make_sync_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:478: in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:367: in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1156: in _sentry_patched_create_sync
    return _new_sync_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:717: in _new_sync_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2763: in completion
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:2735: in completion
    response = openai_chat_completions.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:863: in completion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:3051: in test_binary_content_encoding_uri_type
    litellm.completion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1775: in wrapper
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1596: in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:4502: in completion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_binary_content_encoding_uri_type[True-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:3169: in test_async_binary_content_encoding_uri_type
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

test_async_binary_content_encoding_uri_type[False-True]

File: tests.integrations.litellm.test_litellm
Suite: py3.13-litellm-v1.86.0rc1
Error: litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

Stack Trace
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:930: in acompletion
    headers, response = await self.make_openai_chat_completion_request(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py:297: in async_wrapper
    result = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:461: in make_openai_chat_completion_request
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:438: in make_openai_chat_completion_request
    await openai_aclient.chat.completions.with_raw_response.create(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/openai/_legacy_response.py:384: in wrapped
    return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:1169: in _sentry_patched_create_async
    return await _new_async_chat_completion(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/openai.py:785: in _new_async_chat_completion
    span = get_start_span_function()(
E   TypeError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:637: in acompletion
    response = await init_response
               ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/llms/openai/openai.py:990: in acompletion
    raise OpenAIError(
E   litellm.llms.openai.common_utils.OpenAIError: start_span() got an unexpected keyword argument 'op'

During handling of the above exception, another exception occurred:
tests/integrations/litellm/test_litellm.py:3169: in test_async_binary_content_encoding_uri_type
    await litellm.acompletion(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:2100: in wrapper_async
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/utils.py:1899: in wrapper_async
    result = await original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/main.py:656: in acompletion
    raise exception_type(
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:2466: in exception_type
    raise e
.tox/py3.13-litellm-v1.86.0rc1/lib/python3.13/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py:597: in exception_type
    raise InternalServerError(
E   litellm.exceptions.InternalServerError: litellm.InternalServerError: InternalServerError: OpenAIException - start_span() got an unexpected keyword argument 'op'

✅ Patch coverage is 90.91%. Project has 15069 uncovered lines.

Files with missing lines (2)
File Patch % Lines
tracing_utils.py 33.29% ⚠️ 507 Missing and 43 partials
litellm.py 88.89% ⚠️ 17 Missing and 15 partials

Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review May 21, 2026 11:47
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner May 21, 2026 11:47
@alexander-alderman-webb alexander-alderman-webb marked this pull request as draft May 21, 2026 11:48
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

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

Fix All in Cursor

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

Reviewed by Cursor Bugbot for commit 49ec553. Configure here.

events = [item.payload for item in items if item.type == "transaction"]
assert len(events) == 3

sentry_sdk.flush()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sync test captures only transactions, missing span validation

Medium Severity

In the sync test_multiple_providers, capture_items("transaction") only captures transaction-type items. The newly added sentry_sdk.flush() before spans = [item.payload for item in items if item.type == "span"] suggests an intent to capture and validate spans, but the filter at capture time excludes them. This makes the span assertions in the for loop vacuously true — they never execute. The async counterpart test_async_multiple_providers correctly uses capture_items("transaction", "span"), confirming this is an oversight.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 49ec553. Configure here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant