Skip to content

build(deps): bump structlog from 21.1.0 to 21.4.0 in /tools #1218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 29, 2021

Bumps structlog from 21.1.0 to 21.4.0.

Release notes

Sourced from structlog's releases.

21.4.0

This release is mostly about a regression when importing using a Python interpreter running with the PYTHONOPTIMIZE=2 environment variable set, or as python -OO. The one new feature is kinda neat too, though!

Changes:

  • Fixed import when running in optimized mode (PYTHONOPTIMIZE=2 or python -OO). #373
  • Added the structlog.threadlocal.bound_threadlocal and structlog.contextvars.bound_contextvars decorator/context managers to temporarily bind key/value pairs to a thread-local and context-local context. #371

21.3.0

The main reason for this comparatively timely release is that aiohttp 3.8's new behavior of starting new loops within aiohttp.web.run_app() led to breakage in apps that use structlog.stdlib.AsyncBoundLogger.

The one big new feature though is the support for much more powerful processor chains within structlog.stdlib.ProcessorFormatter. This took me way too long to get right, but I'm excited to share it with you.

This is also the first release without a setup.py. Invoking it was never tested and never supported, so now it's gone. Please use standard packaging tools like PyPA's build or flit directly if you want to package structlog yourself.

Backward-incompatible changes:

  • structlog switched its packaging to flit. Users shouldn't notice a difference, but (re-)packagers might.

Deprecations:

none

Changes:

  • structlog.dev.ConsoleRenderer now has sort_keys boolean parameter that allows to disable the sorting of keys on output. #358

  • structlog.processors.TimeStamper now works well with FreezeGun even when it gets applied before the loggers are configured. #364

  • structlog.stdlib.AsyncBoundLogger now determines the running loop when logging, not on instantiation. That has a minor performance impact, but makes it more robust when loops change (e.g. aiohttp.web.run_app()), or you want to use sync_bl before a loop has started.

  • structlog.stdlib.ProcessorFormatter now has a processors argument that allows to define a processor chain to run over all log entries.

    Before running the chain, two additional keys are added to the event dictionary: _record and _from_structlog. With them it's possible to extract information from logging.LogRecords and differentiate between structlog and logging log entries while processing them.

    The old processor (singular) parameter is now deprecated, but no plans exist to remove it. #365

21.2.0

Highlights

  • Support for for beautiful (and helpful!) exceptions by integrating ConsoleRenderer with rich or better-exceptions.
  • Helpers to access thread-local and context-local context.
  • Deeper contextvars support.

Backward-incompatible changes:

  • To implement pretty exceptions (see Changes below), structlog.dev.ConsoleRenderer now formats exceptions itself.

... (truncated)

Changelog

Sourced from structlog's changelog.

21.4.0 (2021-11-25)

Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

none

Deprecations: ^^^^^^^^^^^^^

none

Changes: ^^^^^^^^

  • Fixed import when running in optimized mode (PYTHONOPTIMIZE=2 or python -OO). [#373](https://github.com/hynek/structlog/issues/373) <https://github.com/hynek/structlog/pull/373>_
  • Added the structlog.threadlocal.bound_threadlocal and structlog.contextvars.bound_contextvars decorator/context managers to temporarily bind key/value pairs to a thread-local and context-local context. [#371](https://github.com/hynek/structlog/issues/371) <https://github.com/hynek/structlog/pull/371>_

21.3.0 (2021-11-20)

Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • structlog switched its packaging to flit <https://flit.readthedocs.io/>_. Users shouldn't notice a difference, but (re-)packagers might.

Deprecations: ^^^^^^^^^^^^^

none

Changes: ^^^^^^^^

  • structlog.dev.ConsoleRenderer now has sort_keys boolean parameter that allows to disable the sorting of keys on output. [#358](https://github.com/hynek/structlog/issues/358) <https://github.com/hynek/structlog/pull/358>_

... (truncated)

Commits
  • e9e77e8 Prepare 21.4.0
  • c31ec11 We don't need that comma
  • 2c2bcc3 Fold backwards compatibility policy into changelog
  • e5ad4fb Update changelog
  • 677b794 Simplify -OO handling
  • e45b84b Add structlog.contextvars.bound_contextvars, add missing example to thread-lo...
  • 05c4b51 Add example for bound_threadlocal
  • a0becf5 Add threadlocal bound context manager (#371)
  • 3647f47 GitHub really wants us to use Markdown
  • e5507ad Add missing TODO
  • Additional commits viewable in compare view

Dependabot compatibility score

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 ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [structlog](https://github.com/hynek/structlog) from 21.1.0 to 21.4.0.
- [Release notes](https://github.com/hynek/structlog/releases)
- [Changelog](https://github.com/hynek/structlog/blob/main/CHANGELOG.rst)
- [Commits](hynek/structlog@21.1.0...21.4.0)

---
updated-dependencies:
- dependency-name: structlog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the tools Common Python tools label Nov 29, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 20, 2021

Superseded by #1238.

@dependabot dependabot bot closed this Dec 20, 2021
@dependabot dependabot bot deleted the dependabot/pip/tools/structlog-21.4.0 branch December 20, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Common Python tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants