Skip to content

Correctly instrument streaming responses #626

@adamchainz

Description

@adamchainz

Django (StreamingHttpResponse) and other frameworks support streaming HTTP responses. Currently our middleware-based instrumentation will not capture all the time sent streaming the response out, but instead prematurely close the TrackedRequest.

To correctly capture such responses we'd want to detect them and change behaviour to only close the TrackedRequest once their iteration has completed.

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