mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
* Add asynchronous socketio application server * fix uv lock * Update cors * fix socket app
10 lines
271 B
Python
10 lines
271 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from fastapi import Request
|
|
|
|
from backend.core.conf import settings
|
|
|
|
|
|
def get_request_trace_id(request: Request) -> str:
|
|
return request.headers.get(settings.TRACE_ID_REQUEST_HEADER_KEY) or settings.LOG_CID_DEFAULT_VALUE
|