We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c5250 commit 1db5715Copy full SHA for 1db5715
eodag/rest/utils/observability.py
@@ -27,7 +27,7 @@
27
from __future__ import annotations
28
29
import logging
30
-from typing import TYPE_CHECKING
+from typing import TYPE_CHECKING, Optional
31
32
from opentelemetry import metrics, trace
33
from opentelemetry.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter
@@ -56,7 +56,7 @@
56
57
def instrument_server(
58
eodag_api: EODataAccessGateway,
59
- fastapi_app: FastAPI = None,
+ fastapi_app: Optional[FastAPI] = None,
60
) -> None:
61
"""Instrument EODAG server."""
62
# Start OTLP exporter
0 commit comments