File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ To install ``python-dockerflow``'s FastAPI support please follow these steps:
4444 app = FastAPI()
4545 app.include_router(router)
4646 app.add_middleware(MozlogRequestSummaryLogger)
47- app.add_middleware(CorrelationIdMiddleware)
47+ app.add_middleware(CorrelationIdMiddleware) # see snok/asgi-correlation-id
4848
4949#. Make sure the app root path is set correctly as this will be used
5050 to locate the ``version.json `` file that is generated by
@@ -308,6 +308,9 @@ for at least the ``request.summary`` logger:
308308 }
309309 })
310310
311+
312+ A unique ID is added to each log message, using the `asgi-correlation-id <https://github.com/snok/asgi-correlation-id >`_ package.
313+
311314.. _fastapi-static :
312315
313316Static content
You can’t perform that action at this time.
0 commit comments