diff --git a/aiws.py b/aiws.py index 21f91c8..57a1c7e 100644 --- a/aiws.py +++ b/aiws.py @@ -196,7 +196,7 @@ Instrumentator( # should_group_untemplated=False, # (опционально) не схлопывать untemplated в "none" ).instrument( app, - metric_namespace="fastapi", + metric_namespace="ai_bot", ).expose(app, endpoint="/metrics", include_in_schema=False) app_info = Info("fastapi_app_info", "FastAPI application info") app_info.info({"app_name": "ai-bot"}) diff --git a/api/service/generation_service.py b/api/service/generation_service.py index 1365e78..b433eac 100644 --- a/api/service/generation_service.py +++ b/api/service/generation_service.py @@ -267,7 +267,8 @@ class GenerationService: minio_object_name=filename, minio_bucket=self.s3_adapter.bucket_name, thumbnail=thumbnail_bytes, - created_by=generation.created_by + created_by=generation.created_by, + project_id=generation.project_id ) # Сохраняем в БД