Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

replace loggingcontexts with contextvars #10342

@richvdh

Description

@richvdh

logcontexts are super confusing, and easy to mess up.

We should experiment with replacing the thread-local variable we currently use with a contextvar, which Twisted has first-class support for (twisted/twisted#1192), which could potentially save everyone who ever touches Synapse code a great deal of pain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LoggingSynapse's logs (structured or otherwise). Not metrics.P3(OBSOLETE: use S- labels.) Approved backlog: not yet scheduled, will accept patchesT-EnhancementNew features, changes in functionality, improvements in performance, or user-facing enhancements.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions