Skip to content

Missing instrumentation for the request's calls (stdlib instrumnetation) #5349

@maaxnikolaevich

Description

@maaxnikolaevich

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.49.0

Steps to Reproduce

After I updated sdk from 1.45 up to 2.49, I got a lot of missing instrumentation in my tracing reports for the request calls. I don't have any custom configurations for sentry_sdk.init. Before, it just worked as is.


import sentry_sdk
from sentry_sdk.integrations.fastapi import FastApiIntegration


def setup_sentry(settings):
    if settings.SENTRY_DSN:
        sentry_sdk.init(
            dsn=settings.SENTRY_DSN,
            integrations=[FastApiIntegration()],
            environment=settings.ENV,
            traces_sample_rate=1.0,
        )

Expected Result

How it worked before the update:

Image

Actual Result

What I see now, just an incorrected elapsed time for the requests (it's impossible values which have < 1ms, http.client span provides dummy result).

Image

I added the traces manually and got reliable results.
Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions