New:
- (celery) add priority (if available) and routing_key to task_enqueued. See [#345](https://github.com/jrobichaud/django-structlog/issues/345) <https://github.com/jrobichaud/django-structlog/pull/345>_ and [#341](https://github.com/jrobichaud/django-structlog/issues/341) <https://github.com/jrobichaud/django-structlog/issues/341>. Special thanks to badziyoussef <https://github.com/badziyoussef>.
- Python 5.0 support. See [#350](https://github.com/jrobichaud/django-structlog/issues/350) <https://github.com/jrobichaud/django-structlog/pull/350>. Take note async view cancellation does not work yet, see [#351](https://github.com/jrobichaud/django-structlog/issues/351) <https://github.com/jrobichaud/django-structlog/issues/351>.
- Add streaming response support (for both sync and async) and Django 5's async cancellation. See [#353](https://github.com/jrobichaud/django-structlog/issues/353) <https://github.com/jrobichaud/django-structlog/pull/353>_ and :ref:streaming_response_events.
Changes:
- Drop support of django 4.0. See [#338](https://github.com/jrobichaud/django-structlog/issues/338) <https://github.com/jrobichaud/django-structlog/pull/338>. Special thanks to @jairhenrique <https://github.com/jairhenrique>.
Other:
- Improved demo project
- Better UI
- Easy switch between runserver_plus, wsgi an asgi
- Front-end request feedbacks using toasts
6.0 (October 3, 2023)
See: :ref:upgrade_6.0
New:
- Python 3.12 support
- Add support of logging :ref:commands
- task_revoked has now a signame metadata. See [#323](https://github.com/jrobichaud/django-structlog/issues/323) <https://github.com/jrobichaud/django-structlog/issues/323>.
- task_not_found has now a task_id and a task metadata. See [#323](https://github.com/jrobichaud/django-structlog/issues/323) <https://github.com/jrobichaud/django-structlog/issues/323>.
Fixes:
- Add missing metadata when a task is revoked. See [#317](https://github.com/jrobichaud/django-structlog/issues/317) <https://github.com/jrobichaud/django-structlog/issues/317>. Special thanks to @badziyoussef <https://github.com/badziyoussef>.
Changes:
- Drop support of python 3.7
- Drop legacy code still supporting celery < 4
- Removal of deprecated:
- :class:django_structlog.middlewares.CeleryMiddleware
- :class:django_structlog.middlewares.SyncRequestMiddleware
- :class:django_structlog.middlewares.AsyncRequestMiddleware
- :class:django_structlog.middlewares.request_middleware_router
- 4XX status codes now log by default as WARNING and 5XX as ERROR. The behaviour of 4XX can be customized with :ref:configuration. See [#308](https://github.com/jrobichaud/django-structlog/issues/308) <https://github.com/jrobichaud/django-structlog/issues/308>. Special thanks to @adinhodovic <https://github.com/adinhodovic>.
- task_revoked's signum is now an integer instead of an object. See [#323](https://github.com/jrobichaud/django-structlog/issues/323) <https://github.com/jrobichaud/django-structlog/issues/323>.
- task_not_found's message was removed and replaced by task_id and task. See [#323](https://github.com/jrobichaud/django-structlog/issues/323) <https://github.com/jrobichaud/django-structlog/issues/323>.
- task_rejected's message was removed and replaced by task_id. See [#323](https://github.com/jrobichaud/django-structlog/issues/323) <https://github.com/jrobichaud/django-structlog/issues/323>_.
- Switched from git's master to main branch
Other:
- Add new :ref:how_tos section in the documentation.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps django-structlog from 5.3.0 to 6.0.0.
Changelog
Sourced from django-structlog's changelog.
Commits
1d48e18
Bump release version6975357
Merge pull request #335 from jrobichaud/how-tos7659ed1
Add how tos section4c54d4a
Bump ruff in pre-commit98ca64e
Merge pull request #331 from jrobichaud/dependabot/pip/requirements/django-ip...2634d61
Merge pull request #334 from jrobichaud/dependabot/pip/requirements/coverage-...08e2c6f
Merge pull request #332 from jrobichaud/dependabot/pip/requirements/ruff-0.0.292eeebaed
Bump django-ipware from 5.0.0 to 5.0.1 in /requirements8f7afe6
Merge pull request #333 from jrobichaud/dependabot/pip/requirements/psycopg2-...c4453ab
Fix master referenceDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show