Skip to content

Commit

Permalink
test: fix circular import on test startup
Browse files Browse the repository at this point in the history
  • Loading branch information
dalpasso committed May 16, 2024
1 parent e13bc48 commit b87329b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eodag/rest/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
UnsupportedProvider,
ValidationError,
)
from eodag.utils.instrumentation.eodag import EODAGInstrumentor

if TYPE_CHECKING:
from fastapi.types import DecoratedCallable
Expand Down Expand Up @@ -979,6 +978,9 @@ def telemetry_init(fastapi_app: Optional[FastAPI] = None) -> None:
meter_provider=meter_provider,
)
logger.debug("Instrument EODAG app")

from eodag.utils.instrumentation.eodag import EODAGInstrumentor

EODAGInstrumentor(eodag_api).instrument(
tracer_provider=tracer_provider,
meter_provider=meter_provider,
Expand Down

0 comments on commit b87329b

Please sign in to comment.