@@ -55,8 +55,10 @@ opentelemetry-sdk = "^1.25.0"
5555opentelemetry-exporter-otlp = " ^1.25.0"
5656opentelemetry-exporter-prometheus-remote-write = " ^0.46b0"
5757opentelemetry-instrumentation = " ^0.46b0"
58- opentelemetry-instrumentation-asgi = " ^0.46b0"
5958opentelemetry-instrumentation-system-metrics = " ^0.46b0"
59+ # optional extras for any web framework
60+ opentelemetry-instrumentation-asgi = { version = " ^0.46b0" , optional = true }
61+ health-checks = { version = " ^1.1.0" , optional = true }
6062# optional extras for Litestar
6163litestar = { version = " ^2.9.1" , optional = true }
6264prometheus-client = { version = " ^0.20.0" , optional = true }
@@ -66,7 +68,6 @@ fastapi = { version = "^0.111.0", optional = true }
6668prometheus-fastapi-instrumentator = { version = " ^6.1.0" , optional = true }
6769opentelemetry-instrumentation-fastapi = { version = " ^0.46b0" , optional = true }
6870fastapi-offline-docs = { version = " ^1.0.1" , optional = true }
69- health-checks = " ^1.1.0"
7071
7172[tool .poetry .group .dev .dependencies ]
7273pytest = " ^8.2.2"
@@ -86,11 +87,19 @@ ruff = "^0.6.9"
8687[tool .poetry .extras ]
8788fastapi = [
8889 " fastapi" ,
90+ " fastapi-offline-docs" ,
91+ " health-checks" ,
92+ " opentelemetry-instrumentation-asgi" ,
8993 " opentelemetry-instrumentation-fastapi" ,
9094 " prometheus-fastapi-instrumentator" ,
91- " fastapi-offline-docs" ,
9295]
93- litestar = [" litestar" , " prometheus-client" , " litestar-offline-docs" ]
96+ litestar = [
97+ " litestar" ,
98+ " litestar-offline-docs" ,
99+ " health-checks" ,
100+ " opentelemetry-instrumentation-asgi" ,
101+ " prometheus-client" ,
102+ ]
94103
95104[build-system ]
96105requires = [" poetry-core" ]
0 commit comments