open-telemetry / opentelemetry-python-contrib

OpenTelemetry instrumentation for Python modules
https://opentelemetry.io
Apache License 2.0
701 stars 584 forks source link

Fix opentelemetry-util-http tests #2634

Closed emdneto closed 3 months ago

emdneto commented 3 months ago

Description

It seems opentelemetry-util-http tox commands aren't working properly and it's has been used for several instrumentations. Fix that

Fixes #2633

$ tox -e py312-test-util-http

========================================================================= warnings summary ==========================================================================
opentelemetry-instrumentation/src/opentelemetry/instrumentation/dependencies.py:4
  /Users/emidio.neto/workspace/emd/github/opentelemetry/opentelemetry-python-contrib/opentelemetry-instrumentation/src/opentelemetry/instrumentation/dependencies.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import (

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================================================== 24 passed, 1 warning in 3.64s ===================================================================
  py312-test-util-http: OK (28.81=setup[0.05]+cmd[5.56,5.44,5.67,5.32,1.70,1.12,3.94] seconds)
  congratulations :) (28.94 seconds)