Skip to content

Add: How to instrument FastAPI background tasks for Sentry Crons. #14648

@antonpirker

Description

@antonpirker

SDK

Python SDK

Description

Our current FastAPI integration does not instrument FastAPI background tasks at the moment.

Suggested Solution

We should instrument a demo FastAPI project manually so the background tasks are seen in Sentry Crons. Then add to the FastAPI guide a section on how to instrument those background tasks manually.

Note

We have a ticket in the Python Repo to add auto instrumentation: getsentry/sentry-python#1473

Once this is implemented and released we need to update the docs again so say from which version of the SDK the background tasks are automatically instrumented.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions