Skip to content

🐛 Bug Report: opentelemetry-instrumentation-qdrant is incompatible with qdrant-client version 1.16.1 #3492

@vitalii-diachkov-sumup

Description

@vitalii-diachkov-sumup

I have just upgraded qdrant-client to v1.16.1 and with opentelemetry-insturmentation-qdrant of v0.48.1 I am getting attribute error. Traceback:

chatbot      |   File "/usr/src/chatbot/app/libs/otel.py", line 144, in init_otel_instrumentation
chatbot      |     QdrantInstrumentor().instrument(tracer_provider=otel_provider)
chatbot      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot      |   File "/usr/src/chatbot/.venv/lib/python3.13/site-packages/opentelemetry/instrumentation/instrumentor.py", line 125, in instrument
chatbot      |     result = self._instrument(  # pylint: disable=assignment-from-no-return
chatbot      |         **kwargs
chatbot      |     )
chatbot      |   File "/usr/src/chatbot/.venv/lib/python3.13/site-packages/opentelemetry/instrumentation/qdrant/__init__.py", line 55, in _instrument
chatbot      |     wrap_function_wrapper(
chatbot      |     ~~~~~~~~~~~~~~~~~~~~~^
chatbot      |         MODULE,
chatbot      |         ^^^^^^^
chatbot      |         f"{wrap_object}.{wrap_method}",
chatbot      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot      |         _wrap(tracer, wrapped_method),
chatbot      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatbot      |     )
chatbot      |     ^
chatbot      |   File "/usr/src/chatbot/.venv/lib/python3.13/site-packages/wrapt/patches.py", line 114, in wrap_function_wrapper
chatbot      |     return wrap_object(module, name, FunctionWrapper, (wrapper,))
chatbot      |   File "/usr/src/chatbot/.venv/lib/python3.13/site-packages/wrapt/patches.py", line 60, in wrap_object
chatbot      |     (parent, attribute, original) = resolve_path(module, name)
chatbot      |                                     ~~~~~~~~~~~~^^^^^^^^^^^^^^
chatbot      |   File "/usr/src/chatbot/.venv/lib/python3.13/site-packages/wrapt/patches.py", line 52, in resolve_path
chatbot      |     original = lookup_attribute(parent, attribute)
chatbot      |   File "/usr/src/chatbot/.venv/lib/python3.13/site-packages/wrapt/patches.py", line 44, in lookup_attribute
chatbot      |     return getattr(parent, attribute)
chatbot      | AttributeError: type object 'QdrantClient' has no attribute 'upload_records'

Apparently, upload_records is no longer a method of QdrantClient, maybe some other methods are missing, I haven't checked that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions