sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

[FastAPI] Background Tasks

Open smeubank opened this issue 3 years ago • 2 comments

Problem Statement

Similar to other frameworks FastAPI can run background task, which should be included in contextual data

Solution Brainstorm

It would be beneficial to add distributed tracing support to background task

smeubank avatar Jun 20 '22 11:06 smeubank

any update on this?

joschkabraun avatar Apr 10 '24 18:04 joschkabraun

No update, sorry

antonpirker avatar Apr 11 '24 11:04 antonpirker

Same holds true for Quart, it also offers https://quart.palletsprojects.com/en/latest/how_to_guides/background_tasks.html

larsblumberg avatar Aug 17 '24 16:08 larsblumberg

any news on this? 🤔

javi-cortes avatar Jul 31 '25 06:07 javi-cortes

There's an integration to fix it:

from sentry_sdk.integrations.asyncio import AsyncioIntegration
sentry_sdk.init(
        dsn=...,
        environment=...,
        integrations=[AsyncioIntegration()],
    )

amandomv avatar Jul 31 '25 06:07 amandomv

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Aug 22 '25 07:08 getsantry[bot]