File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
model-engine/model_engine_server Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class CustomMiddleware(BaseHTTPMiddleware):
4747 async def dispatch (self , request : Request , call_next ):
4848 try :
4949 LoggerTagManager .set (LoggerTagKey .REQUEST_ID , str (uuid .uuid4 ()))
50+ LoggerTagManager .set (LoggerTagKey .REQUEST_SIZE , request .headers .get ("content-length" ))
5051 # we intentionally exclude healthcheck routes from the concurrency limiter
5152 if request .url .path in healthcheck_routes :
5253 return await call_next (request )
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ class LoggerTagKey(str, Enum):
4242 REQUEST_ID = "request_id"
4343 TEAM_ID = "team_id"
4444 USER_ID = "user_id"
45+ REQUEST_SIZE = "request_size"
4546
4647
4748class LoggerTagManager :
You can’t perform that action at this time.
0 commit comments