diff --git a/api/src/common/middleware.py b/api/src/common/middleware.py index 8a8db79d..f1169a4c 100644 --- a/api/src/common/middleware.py +++ b/api/src/common/middleware.py @@ -61,7 +61,7 @@ async def __call__(self, scope, receive, send): path = scope["path"] response = {} - async def innner_send(message): + async def inner_send(message): nonlocal response if message["type"] == "http.response.start": response = message @@ -74,7 +74,7 @@ async def innner_send(message): with tracer.span("main") as span: span.span_kind = SpanKind.SERVER - await self.app(scope, receive, innner_send) + await self.app(scope, receive, inner_send) tracer.add_attribute_to_current_span( attribute_key=COMMON_ATTRIBUTES["HTTP_STATUS_CODE"], attribute_value=response["status"] diff --git a/api/src/config.py b/api/src/config.py index a6db8f5b..2d6a9154 100644 --- a/api/src/config.py +++ b/api/src/config.py @@ -9,7 +9,7 @@ class Config(BaseSettings): # Logging LOGGER_LEVEL: str = Field("INFO", env="LOGGING_LEVEL", to_lower=True) - APPINSIGHTS_CONSTRING: str = Field(None, env="APPINSIGHTS_CONSTRING") + APPINSIGHTS_CONSTRING: str | None = Field(None, env="APPINSIGHTS_CONSTRING") # Database MONGODB_USERNAME: str = Field("dummy", env="MONGODB_USERNAME")