Skip to content

Commit d5225be

Browse files
committed
small import fix
1 parent d47aee0 commit d5225be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lite_bootstrap/import_checker.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99
is_litestar_installed = find_spec("litestar") is not None
1010
is_faststream_installed = find_spec("faststream") is not None
1111
is_prometheus_fastapi_instrumentator_installed = find_spec("prometheus_fastapi_instrumentator") is not None
12-
is_fastapi_opentelemetry_installed = find_spec("opentelemetry.instrumentation.fastapi") is not None
12+
is_fastapi_opentelemetry_installed = (
13+
is_opentelemetry_installed and find_spec("opentelemetry.instrumentation.fastapi") is not None
14+
)

0 commit comments

Comments
 (0)