class_docstr: A FastAPI subclass that tracks the request metadata.
class_docstr_tok: ["A","FastAPI","subclass","that","tracks","the","request","metadata","."]
code: def __init__(self, *args: Any, **kwargs: Any):
      super().__init__(*args, **kwargs)
      self.global_request_count = 0
      self.num_current_requests = 0
      self.last_processing_time = 0
  
imports: import asyncio
  import logging
  import time
  import uuid
  from itertools import cycle
  from typing import Any, Dict, List, Optional, Tuple, Type, Union
  from typing import SupportsFloat
  import requests
  import uvicorn
  from fastapi import FastAPI, HTTPException, Request
  from fastapi.middleware.cors import CORSMiddleware
  from fastapi.responses import RedirectResponse
  from pydantic import BaseModel
  from starlette.staticfiles import StaticFiles
  from lightning.app.components.serve.cold_start_proxy import ColdStartProxy
  from lightning.app.core.flow import LightningFlow
  from lightning.app.core.work import LightningWork
  from lightning.app.utilities.app_helpers import Logger
  from lightning.app.utilities.cloud import is_running_in_cloud
  from lightning.app.utilities.imports import _is_aiohttp_available, requires
  from lightning.app.utilities.packaging.cloud_compute import CloudCompute
label_desc: Use image node_id 1 to create a new _TrackableFastAPI object from inherited base classes: FastAPI with example: obj = _TrackableFastAPI()