Skip to content

Support preserving request across asyncio tasks #469

Description

@adamchainz

Currently an async view in e.g a starlette application that launches and awaits some asyncio tasks will not have them in its trace.

Our current context holder, asgiref.local, deliberately doesn't restricts context per task. This makes sense since they can be left runnign after the request completes, for example for Starlette's background tasks.

We should provide some way of preserving the tracked request into launched tasks. Need to research state of the art here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions