Skip to content

Commit 85d1ec8

Browse files
committed
[DOP-22034] Use UUIDv8 for X-REQUEST-ID default value
1 parent b4c1c00 commit 85d1ec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_rentgen/server/middlewares/request_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33
from asgi_correlation_id import CorrelationIdMiddleware
44
from fastapi import FastAPI
5-
from uuid6 import uuid7
5+
from uuid6 import uuid8
66

77
from data_rentgen.server.settings.server import RequestIDSettings
88

@@ -14,7 +14,7 @@ def apply_request_id_middleware(app: FastAPI, settings: RequestIDSettings) -> Fa
1414

1515
app.add_middleware(
1616
CorrelationIdMiddleware,
17-
generator=lambda: uuid7().hex,
17+
generator=lambda: uuid8().hex,
1818
validator=None,
1919
**settings.model_dump(exclude={"enabled"}),
2020
)

0 commit comments

Comments
 (0)