-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
util-http
breaks auto-instrumentation since v0.25b0
#744
Labels
bug
Something isn't working
Comments
cc relevant authors: |
owais
added a commit
to owais/opentelemetry-python-contrib
that referenced
this issue
Oct 15, 2021
Fixes open-telemetry#744 This is a temporary hotfix for the issue linked above. We'll need to figure out a proper fix later.
11 tasks
owais
added a commit
to owais/opentelemetry-python-contrib
that referenced
this issue
Oct 15, 2021
Fixes open-telemetry#744 This is a temporary hotfix for the issue linked above. We'll need to figure out a proper fix later.
owais
added a commit
that referenced
this issue
Oct 15, 2021
Fixes #744 This is a temporary hotfix for the issue linked above. We'll need to figure out a proper fix later.
We will try to release a fix for this next week. Until then please downgrade to the previous release if you are affected by this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe your environment
Dockerfile
provided for reproducibility, using Python 3.9, and installing the following libraries:Steps to reproduce
The following Dockerfile provides a simple Flask server, instrumented using
opentelemetry-instrument
:Use the following command to build and run the Docker container:
docker build -t test-otel-http . docker run --rm -it -p5000:5000 test-otel-http
What is the expected behavior?
Correctly instrumented Flask server.
What is the actual behavior?
Running the Docker container raises an exception in OpenTelemetry. The Flask server starts nevertheless, without being correctly instrumented:
Additional context
As far as I could investigate, this is what I understand is happening:
opentelemetry-util-http
got a provider (HttpClientInstrumentor
) as an entry point.opentelemetry-instrument
iterates over all OpenTelemetry providers, it now findsHttpClientInstrumentor
.instruments
extra inopentelemetry-util-http
, which doesn't exist, and fails.As
opentelemetry-util-http
doesn't depend on non-stdlib Python packages, it seems that the only missing pieces to fix this issue are:_instruments = tuple()
topackage.py
(e.g.opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-urllib/src/opentelemetry/instrumentation/urllib/package.py
Line 16 in f7256f5
extras_require
configuration tosetup.py
(e.g. https://github.com/open-telemetry/opentelemetry-python-contrib/blob/354bdc42d9e3d071a60737c47c7b1e17f77e8425/instrumentation/opentelemetry-instrumentation-urllib/setup.py)The text was updated successfully, but these errors were encountered: