diff --git a/docs/django.rst b/docs/django.rst index 60ac99c..3a52a82 100644 --- a/docs/django.rst +++ b/docs/django.rst @@ -472,7 +472,7 @@ Requests Correlation ID A unique request ID is read from the ``X-Request-ID`` request header, and a UUID4 value is generated if unset. -Leveraging the ``RequestIdFilter`` in logging configuration as shown above will add a ``rid`` field into the ``Fields`` entry of all log messages. +Leveraging the ``RequestIdLogFilter`` in logging configuration as shown above will add a ``rid`` field into the ``Fields`` entry of all log messages. The header name to obtain the request ID can be `customized in settings `_: diff --git a/docs/fastapi.rst b/docs/fastapi.rst index fe4fe75..fe2e734 100644 --- a/docs/fastapi.rst +++ b/docs/fastapi.rst @@ -300,7 +300,7 @@ for at least the ``request.summary`` logger: }, 'filters': { 'request_id': { - '()': 'dockerflow.logging.RequestIdFilter', + '()': 'dockerflow.logging.RequestIdLogFilter', }, }, 'handlers': { @@ -346,7 +346,7 @@ Requests Correlation ID A unique request ID is read from the ``X-Request-ID`` request header, and a UUID4 value is generated if unset. -Leveraging the ``RequestIdFilter`` in logging configuration as shown above will add a ``rid`` field into the ``Fields`` entry of all log messages. +Leveraging the ``RequestIdLogFilter`` in logging configuration as shown above will add a ``rid`` field into the ``Fields`` entry of all log messages. The header name to obtain the request ID can be customized in settings: diff --git a/docs/flask.rst b/docs/flask.rst index c77834e..c36d2c4 100644 --- a/docs/flask.rst +++ b/docs/flask.rst @@ -443,7 +443,7 @@ for at least the ``request.summary`` logger:: }, 'filters': { 'request_id': { - '()': 'dockerflow.logging.RequestIdFilter', + '()': 'dockerflow.logging.RequestIdLogFilter', }, }, 'handlers': { @@ -486,7 +486,7 @@ Requests Correlation ID A unique request ID is read from the ``X-Request-ID`` request header, and a UUID4 value is generated if unset. -Leveraging the ``RequestIdFilter`` in logging configuration as shown above will add a ``rid`` field into the ``Fields`` entry of all log messages. +Leveraging the ``RequestIdLogFilter`` in logging configuration as shown above will add a ``rid`` field into the ``Fields`` entry of all log messages. The header name to obtain the request ID can be customized in settings: diff --git a/docs/logging.rst b/docs/logging.rst index 1b6c255..d1a8dea 100644 --- a/docs/logging.rst +++ b/docs/logging.rst @@ -41,7 +41,7 @@ this:: }, 'filters': { 'request_id': { - '()': 'dockerflow.logging.RequestIdFilter', + '()': 'dockerflow.logging.RequestIdLogFilter', }, }, 'handlers': { @@ -90,7 +90,7 @@ thing as the dictionary based configuratio above: keys = request_id [filter_request_id] - class = dockerflow.logging.RequestIdFilter + class = dockerflow.logging.RequestIdLogFilter [logger_root] level = INFO diff --git a/docs/sanic.rst b/docs/sanic.rst index 034272f..08a97b5 100644 --- a/docs/sanic.rst +++ b/docs/sanic.rst @@ -423,7 +423,7 @@ for at least the ``request.summary`` logger:: }, 'filters': { 'request_id': { - '()': 'dockerflow.logging.RequestIdFilter', + '()': 'dockerflow.logging.RequestIdLogFilter', }, }, 'handlers': { @@ -485,7 +485,7 @@ Requests Correlation ID A unique request ID is read from the ``X-Request-ID`` request header, and a UUID4 value is generated if unset. -Leveraging the ``RequestIdFilter`` in logging configuration as shown above will add a ``rid`` field into the ``Fields`` entry of all log messages. +Leveraging the ``RequestIdLogFilter`` in logging configuration as shown above will add a ``rid`` field into the ``Fields`` entry of all log messages. The header name to obtain the request ID can be customized in settings: