forked from mtusi2026/mtusi2026lab6
feat: ЛР6 - наблюдаемость OpenTelemetry, Grafana и исследование цены наблюдаемости
This commit is contained in:
@@ -9,6 +9,7 @@ from fastapi import FastAPI
|
||||
from app.config import APP_HOST, APP_PORT, LOG_LEVEL
|
||||
from app.errors import register_error_handlers
|
||||
from app.middleware import RequestIdAndLoggingMiddleware
|
||||
from app.telemetry import init_telemetry
|
||||
from app.routes.attachments import router as attachments_router
|
||||
from app.routes.auth import router as auth_router
|
||||
from app.routes.chats import router as chats_router
|
||||
@@ -37,6 +38,8 @@ async def lifespan(app: FastAPI):
|
||||
await storage.disconnect()
|
||||
|
||||
|
||||
init_telemetry("messenger-api")
|
||||
|
||||
app = FastAPI(
|
||||
title="highload-messenger",
|
||||
version="1.6.0",
|
||||
|
||||
Reference in New Issue
Block a user