code: def __init__(self, app: ASGIApp, ignore_paths: Tuple = ()) -> None:
      super().__init__(app)
      self.ignore_paths = ignore_paths
  
file_path: DeepPavlov/deeppavlov/utils/server/metrics.py
imports: import time
  from typing import Tuple
  from prometheus_client import CONTENT_TYPE_LATEST, REGISTRY, generate_latest
  from prometheus_client import Counter, Gauge, Histogram
  from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
  from starlette.requests import Request
  from starlette.responses import Response
  from starlette.types import ASGIApp
label_desc: Use image node_id 1 to create a new PrometheusMiddleware object from inherited base classes: BaseHTTPMiddleware with example: obj = PrometheusMiddleware(app, ignore_paths)