litewave-logger 0.4.0__py3-none-any.whl → 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- litewave_logger/middleware.py +2 -0
- {litewave_logger-0.4.0.dist-info → litewave_logger-0.5.0.dist-info}/METADATA +1 -1
- litewave_logger-0.5.0.dist-info/RECORD +8 -0
- litewave_logger-0.4.0.dist-info/RECORD +0 -8
- {litewave_logger-0.4.0.dist-info → litewave_logger-0.5.0.dist-info}/WHEEL +0 -0
- {litewave_logger-0.4.0.dist-info → litewave_logger-0.5.0.dist-info}/top_level.txt +0 -0
litewave_logger/middleware.py
CHANGED
|
@@ -31,6 +31,8 @@ class RequestIdMiddleware(BaseHTTPMiddleware):
|
|
|
31
31
|
request_id = request.headers.get(RequestIdHeader)
|
|
32
32
|
if not request_id:
|
|
33
33
|
request_id = str(uuid.uuid4())
|
|
34
|
+
# Set the request ID in the request headers if not present
|
|
35
|
+
request.scope["headers"].append((RequestIdHeader.lower().encode(), request_id.encode()))
|
|
34
36
|
|
|
35
37
|
# Set request ID in context
|
|
36
38
|
request_id_var.set(request_id)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
litewave_logger/__init__.py,sha256=zYrepQkWHlyKDwxIKEaMCMSnv7oiTeWx9jjdzZASL98,2818
|
|
2
|
+
litewave_logger/celery.py,sha256=KkeuXNTQm7P_TFj_POdt7WTHL-mcP_Jv60g06Fkw_M4,3358
|
|
3
|
+
litewave_logger/middleware.py,sha256=UJiBy2fIS4c5iw1EvgTpWmjGu2Ukkdv6ZChL7r2_6hc,2547
|
|
4
|
+
litewave_logger/requests.py,sha256=tagJVwWWSVnrYHYRJ24HXu7YNBs9WxIHql0E1fRkbGA,1236
|
|
5
|
+
litewave_logger-0.5.0.dist-info/METADATA,sha256=bB9T57HgOnaFU9l8AvcVTjHZ9v9maSoWi2t5bP_eUfg,4839
|
|
6
|
+
litewave_logger-0.5.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
litewave_logger-0.5.0.dist-info/top_level.txt,sha256=omvs1vFc7ccmip7_gMDjF_3F8omnR-Gdfm2UudrqWuo,16
|
|
8
|
+
litewave_logger-0.5.0.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
litewave_logger/__init__.py,sha256=zYrepQkWHlyKDwxIKEaMCMSnv7oiTeWx9jjdzZASL98,2818
|
|
2
|
-
litewave_logger/celery.py,sha256=KkeuXNTQm7P_TFj_POdt7WTHL-mcP_Jv60g06Fkw_M4,3358
|
|
3
|
-
litewave_logger/middleware.py,sha256=P3Mjv0RZ7Bh7cxmJ4pH537wsORSXP-Dgn1PE9EKUcgQ,2375
|
|
4
|
-
litewave_logger/requests.py,sha256=tagJVwWWSVnrYHYRJ24HXu7YNBs9WxIHql0E1fRkbGA,1236
|
|
5
|
-
litewave_logger-0.4.0.dist-info/METADATA,sha256=sst7qtaxV4ZJyegWwYwXLPDyb6dowOWVnXCGokTWr1g,4839
|
|
6
|
-
litewave_logger-0.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
litewave_logger-0.4.0.dist-info/top_level.txt,sha256=omvs1vFc7ccmip7_gMDjF_3F8omnR-Gdfm2UudrqWuo,16
|
|
8
|
-
litewave_logger-0.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|