diff --git a/instrumentation/opentelemetry-instrumentation-httpx/pyproject.toml b/instrumentation/opentelemetry-instrumentation-httpx/pyproject.toml index 873b40e3a8..61e1bc4b6e 100644 --- a/instrumentation/opentelemetry-instrumentation-httpx/pyproject.toml +++ b/instrumentation/opentelemetry-instrumentation-httpx/pyproject.toml @@ -32,7 +32,7 @@ dependencies = [ [project.optional-dependencies] instruments = [ - "httpx >= 0.18.0", + "httpx >= 0.18.0, <= 0.23.0", ] test = [ "opentelemetry-instrumentation-httpx[instruments]", diff --git a/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py b/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py index aabbd0a6d0..2e5cc794a6 100644 --- a/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py +++ b/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py @@ -81,7 +81,7 @@ "instrumentation": "opentelemetry-instrumentation-grpc==0.36b0.dev", }, "httpx": { - "library": "httpx >= 0.18.0", + "library": "httpx >= 0.18.0, <= 0.23.0", "instrumentation": "opentelemetry-instrumentation-httpx==0.36b0.dev", }, "jinja2": {