logging: RequestMiddleware not compatible with Django 2 #5024
Labels
api: logging
Issues related to the Cloud Logging API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
@liyanhui1228 we really appreciated the trace context feature to group logs by request.
Unfortunately, it looks broken with Django 2.
Django 1.10 introduced a new middleware style ( https://docs.djangoproject.com/en/1.10/releases/1.10/#new-style-middleware )
The old style, used by google.cloud.logging.handlers.middleware.request.RequestMiddleware, support was removed with Django 2.
The text was updated successfully, but these errors were encountered: