Skip to content

Inconsistent dependencies in opentelemetry-instrumentation-asyncclick #3441

@roma-frolov

Description

@roma-frolov

Describe your environment

OS: MacOS 15.3.2
Python version: Python 3.12.2
Package version: 0.53b1

What happened?

The package uses opentelemetry-instrumentation, but it is not included in the dependencies in pyproject.toml.

This causes an import error:

Traceback (most recent call last):
  File "/some/path/__main__.py", line 12, in <module>
    from opentelemetry.instrumentation.asyncclick import AsyncClickInstrumentor
  File "/some/path/.venv/lib/python3.12/site-packages/opentelemetry/instrumentation/asyncclick/__init__.py", line 70, in <module>
    from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
ModuleNotFoundError: No module named 'opentelemetry.instrumentation.instrumentor'

I think the package is missing the opentelemetry-instrumentation dependency.

Steps to Reproduce

  1. pip install opentelemetry-instrumentation-asyncclick

from opentelemetry.instrumentation.asyncclick import AsyncClickInstrumentor

Expected Result

No errors

Actual Result

ModuleNotFoundError: No module named 'opentelemetry.instrumentation.instrumentor

Additional context

No response

Would you like to implement a fix?

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions