Skip to content
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

Add reset_contextvars and update bind_contextvars #339

Merged
merged 1 commit into from
Sep 19, 2021
Merged

Commits on Sep 19, 2021

  1. Add reset_contextvars and update bind_contextvars

    structlog.contextvars.bind_contextvars() now returns a
    Mapping[str, contextvar.Token] corresponding to the results
    of setting the requested contextvars.
    
    This return value is suitable for use with the newly-added
    structlog.contextvars.reset_contextvars() function, which resets the
    requested contextvars to their previous values using the given Tokens.
    jab committed Sep 19, 2021
    Configuration menu
    Copy the full SHA
    ed3c6e2 View commit details
    Browse the repository at this point in the history