Skip to content

Commit 0c83fc7

Browse files
committed
test: fix circular import on test startup
1 parent a2ceda8 commit 0c83fc7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eodag/rest/server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
UnsupportedProvider,
9292
ValidationError,
9393
)
94-
from eodag.utils.instrumentation.eodag import EODAGInstrumentor
9594

9695
if TYPE_CHECKING:
9796
from fastapi.types import DecoratedCallable
@@ -979,6 +978,9 @@ def telemetry_init(fastapi_app: Optional[FastAPI] = None) -> None:
979978
meter_provider=meter_provider,
980979
)
981980
logger.debug("Instrument EODAG app")
981+
982+
from eodag.utils.instrumentation.eodag import EODAGInstrumentor
983+
982984
EODAGInstrumentor(eodag_api).instrument(
983985
tracer_provider=tracer_provider,
984986
meter_provider=meter_provider,

0 commit comments

Comments
 (0)