Skip to content

Commit 5426020

Browse files
committed
Remove fastapi changes as they are not necessary like those of psycopg2 and kafkapython
1 parent 42803f7 commit 5426020

File tree

7 files changed

+5
-18
lines changed

7 files changed

+5
-18
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818

1919
### Added
2020

21-
- `opentelemetry-instrumentation-fastapi` Utilize instruments-any functionality. TODO MOVE TO NEW VERSION WHEN OUT
22-
([#3612](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3612))
2321
- `opentelemetry-instrumentation-psycopg2` Utilize instruments-any functionality.
24-
([#3612](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3612))
22+
([#3610](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3612))
2523
- `opentelemetry-instrumentation-kafka-python` Utilize instruments-any functionality.
26-
([#3612](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3612))
24+
([#3610](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3612))
2725

2826
## Version 1.35.0/0.56b0 (2025-07-11)
2927

instrumentation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
| [opentelemetry-instrumentation-django](./opentelemetry-instrumentation-django) | django >= 1.10 | Yes | development
2323
| [opentelemetry-instrumentation-elasticsearch](./opentelemetry-instrumentation-elasticsearch) | elasticsearch >= 6.0 | No | development
2424
| [opentelemetry-instrumentation-falcon](./opentelemetry-instrumentation-falcon) | falcon >= 1.4.1, < 5.0.0 | Yes | migration
25-
| [opentelemetry-instrumentation-fastapi](./opentelemetry-instrumentation-fastapi) | fastapi ~= 0.92,fastapi-slim ~= 0.92 | Yes | migration
25+
| [opentelemetry-instrumentation-fastapi](./opentelemetry-instrumentation-fastapi) | fastapi ~= 0.92 | Yes | migration
2626
| [opentelemetry-instrumentation-flask](./opentelemetry-instrumentation-flask) | flask >= 1.0 | Yes | migration
2727
| [opentelemetry-instrumentation-grpc](./opentelemetry-instrumentation-grpc) | grpcio >= 1.42.0 | No | development
2828
| [opentelemetry-instrumentation-httpx](./opentelemetry-instrumentation-httpx) | httpx >= 0.18.0 | Yes | migration

instrumentation/opentelemetry-instrumentation-fastapi/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ dependencies = [
3333
]
3434

3535
[project.optional-dependencies]
36-
instruments = []
37-
instruments-any = [
36+
instruments = [
3837
"fastapi ~= 0.92",
39-
"fastapi-slim ~= 0.92",
4038
]
4139

4240
[project.entry-points.opentelemetry_instrumentor]

instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/package.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# limitations under the License.
1414

1515

16-
# TODO: update this
17-
_instruments = ()
18-
_instruments_any = ("fastapi ~= 0.92", "fastapi-slim ~= 0.92")
16+
_instruments = ("fastapi ~= 0.92",)
1917

2018
_supports_metrics = True
2119

instrumentation/opentelemetry-instrumentation-kafka-python/src/opentelemetry/instrumentation/kafka/package.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515

16-
# TODO: where are these used?
1716
_instruments_kafka_python = "kafka-python >= 2.0, < 3.0"
1817
_instruments_kafka_python_ng = "kafka-python-ng >= 2.0, < 3.0"
1918

instrumentation/opentelemetry-instrumentation-psycopg2/src/opentelemetry/instrumentation/psycopg2/package.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
# limitations under the License.
1414

1515

16-
# TODO: where are these used?
1716
_instruments_psycopg2 = "psycopg2 >= 2.7.3.1"
1817
_instruments_psycopg2_binary = "psycopg2-binary >= 2.7.3.1"
1918

20-
# TODO: maybe add _instruments_any
2119
_instruments = ()
2220
_instruments_any = (
2321
_instruments_psycopg2,

opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@
104104
"library": "fastapi ~= 0.92",
105105
"instrumentation": "opentelemetry-instrumentation-fastapi==0.57b0.dev",
106106
},
107-
{
108-
"library": "fastapi-slim ~= 0.92",
109-
"instrumentation": "opentelemetry-instrumentation-fastapi==0.57b0.dev",
110-
},
111107
{
112108
"library": "flask >= 1.0",
113109
"instrumentation": "opentelemetry-instrumentation-flask==0.57b0.dev",

0 commit comments

Comments
 (0)