Skip to content

Commit 3919aa8

Browse files
committed
Add mention in docs
1 parent a0efa7a commit 3919aa8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/fastapi.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

313316
Static content

0 commit comments

Comments
 (0)