Skip to content

Parent/child relationship in spans from ASGI based streaming response wrong. #3822

Open
@antonpirker

Description

@antonpirker

How do you use Sentry?

Sentry Saas (sentry.io)

Version

all

Steps to Reproduce

Run this demo application:
https://github.com/antonpirker/testing-sentry/blob/main/test-fastapi-streaming-response/main.py

Expected Result

The spans created in the response generator called SPAN Stream Response Generator should be childrend of the span SPAN Streaming View.

Actual Result

The spans SPAN Stream Response Generator are children of the root and siblings to SPAN Streaming View:
Image

Solution brain storming

This is probably related to: #3798
And should also be treated the same way (with having a maximum transaction duration of 5 minutes)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions